Hi,
On Sun, 25 Oct 2015, Sergey Korshunoff wrote:
> Hi! Commented out a tcc_error_noabort("'%s' defined twice"... on mob
> gcc-3.4.6 don't give such error by default
> example file1.c
> char __version_303_xxxxxxxx;
> void func1() {}
> example file2.c
> char __version_303_xxxxxxxx;
> void func2() {}
> int main() { return 0; }
> I think there must be a switch to supress such message as minimum
No, please keep the message. That GNU ld doesn't error out in this case
is a side-effect of GCC using common symbols. If it wouldn't then also ld
would error. Try compiling the above with -fno-common and GCC and you'll
see it.
It would also error out if you would initialize both definitions. So,
please revert.
Ciao,
Michael.
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel