[Info-vax] Possible C compiler static variable initialization problem.
hb
end.of at inter.net
Wed Feb 26 15:09:33 EST 2014
On 02/26/2014 07:40 PM, Simon Clubley wrote:
> PS: I've just tried it on Linux and binutils merged the two definitions
> for "unsigned long int a;" in different source files together without
> error just as expected and my test program treated them as one variable.
It depends on gcc's extern model, which is common by default. Try to
compile your example with - fno-common.
More information about the Info-vax
mailing list