Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 1,670 of 2,753    |
|    Ian Lance Taylor to Anton Ertl    |
|    Re: behavior-preserving optimization in     |
|    25 May 09 18:45:14    |
      From: ian@airs.com              anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:              > What I expected is that the linker complains about duplicate symbols       > (irrespective of optimization level). I was very surprised that GNU       > ld produced only warnings for the example given, and that linking       > succeeded.              The linker is acting correctly. When GCC sees an uninitialized       definition, it emits a common symbol. As our esteemed moderator says,       that is a historical artifact. GCC supports the -fno-common option,       q.v., to change this behaviour.              Ian              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca