-fzero-initialized-in-bss again

Richard Henderson rth@redhat.com
Fri Apr 30 23:06:00 GMT 2004


On Fri, Apr 30, 2004 at 04:05:42PM -0400, Ian Lance Taylor wrote:
> Can you or he express it in C terms?

I doubt it.  Because...

> Is the problem that -fzero-initialized-in-bss is causing a zero
> initialized variable to become a common variable?  A BSS variable
> should not be a common variable.  That would be wrong.

... this is *not* the case in C or C++.

The only way a variable should *ever* wind up in COMMON is if DECL_COMMON
is set by the front end.  Otherwise it should go in .bss or .data.


r~



More information about the Gcc mailing list