I noticed this:

#include <stdio.h>
int main() { printf("%d\n", __builtin_constant_p( (puts("hello
world"),1) )); }

prints 0 on gcc and clang (I guess because comma expressions don't
satisfy the C standard's rules for Constant Expressions) but 1 on tcc.

Tcc might want to copy gcc and clang here.

Regards,
Petr Skocik


_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to