This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -fzero-initialized-in-bss again


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]