Re: [Tinycc-devel] Small bug: Uncalled null function pointer literal makes code unlinkable

2018-07-03 Thread Petr Skočík
Excellent! Thanks! On Mon, Jul 2, 2018 at 1:59 AM Michael Matz wrote: > Hi, > > On Tue, 26 Jun 2018, Petr Skočík wrote: > > > Hi. I came across this little bug. It's not a showstopper for me but I > > thought I'd report it in case somebody knows a quick fix. > > > > example:c.c: > > void

Re: [Tinycc-devel] Small bug: Uncalled null function pointer literal makes code unlinkable

2018-07-01 Thread Michael Matz
Hi, On Tue, 26 Jun 2018, Petr Skočík wrote: Hi. I came across this little bug. It's not a showstopper for me but I thought I'd report it in case somebody knows a quick fix. example:c.c: void y(void); #define x ((void(*)(void))0) void call_x() { x?x():y(); } compiling and attempted

[Tinycc-devel] Small bug: Uncalled null function pointer literal makes code unlinkable

2018-06-26 Thread Petr Skočík
Hi. I came across this little bug. It's not a showstopper for me but I thought I'd report it in case somebody knows a quick fix. example: c.c: void y(void); #define x ((void(*)(void))0) void call_x() { x?x():y(); } compiling and attempted linking with tcc -fPIC c.c -c && tcc -shared -o so.so