[Tinycc-devel] Possible bug in memalign

2024-02-14 Thread George Sedov
Hi all, I noticed that in all the calls and definitions of memalign in bcheck.c the signature looks like this: memalign(size_t size, size_t align), while the definition of the standard memalign is in reverse: memalign(size_t alignment, size_t size) (see https://linux.die.net/man/3/memalign). Was

[Tinycc-devel] Local string behaviour with bound check enabled

2024-02-16 Thread George Sedov
Hi all, Sorry to write so many mails in the list, but I don't see other methods of contacting the dev team :) I noticed the discrepancy in the compiler behaviour regarding local strings. Consider this example void TestFunc() { char str1[] = "mystring"; char *str2 = "myotherstring";}

[Tinycc-devel] A couple of questions

2024-02-12 Thread George Sedov
Hi all, First of all, I noticed that throughout the codebase there is a mix of spaces and tabs. This makes it very difficult to produce out-of-tree patches, since most of the editors will replace tabs with spaces. Is there a reason behind it? The second question is about the bounds check. In the