[Tinycc-devel] tcc broken on OpenBSD when using --config-pie (diff included)

2022-08-16 Thread Brian Callahan
Hi tcc list -- I was looking to update the OpenBSD package of tcc. I saw that recently, a configure option for PIE binaries was added. This would be very desirable for us, so I tried to enable it only to find that all binaries produced with --config-pie were broken. This is because tcc

Re: [Tinycc-devel] miscompilation for code snippet

2022-08-16 Thread Michael Matz
Hey, On Tue, 16 Aug 2022, ntysdd via Tinycc-devel wrote: Sorry, bad format.  #define G(x) _Generic((x),int*:"int*",void*:"void*")  int printf(const char*, ...);  int main()  {          int y = 0;          const char *s = G(1?(void*)(y*0LL):);          printf("%s\n", s);  } Fixed in mob.

[Tinycc-devel] Compilation error negative width in bit-field '__error_if_negative'

2022-08-16 Thread ntysdd via Tinycc-devel
What does this mean? Failed to grep this. ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] miscompilation for code snippet

2022-08-16 Thread ntysdd via Tinycc-devel
Sorry, bad format. #define G(x) _Generic((x),int*:"int*",void*:"void*") int printf(const char*, ...); int main() { int y = 0; const char *s = G(1?(void*)(y*0LL):y); printf("%s\n", s); } --Original-- From:

[Tinycc-devel] miscompilation for code snippet

2022-08-16 Thread ntysdd via Tinycc-devel
TCC gets different result than gcc or clang for code below #define G(x) _Generic((x),int*:"int*",void*:"void*") int printf(const char*, ...); int main() { int y = 0; const char *s = G(1?(void*)(y*0LL):y); printf("%s\n", s); } expected void* actual int* Similar