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
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.
What does this mean?
Failed to grep this.
___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/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:
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