This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fzero-initialized-in-bss again
- From: Richard Henderson <rth at redhat dot com>
- To: Ian Lance Taylor <ian at wasabisystems dot com>
- Cc: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>, gcc at gcc dot gnu dot org
- Date: Fri, 30 Apr 2004 14:39:05 -0700
- Subject: Re: -fzero-initialized-in-bss again
- References: <10404302000.AA05451@vlsi1.ultra.nyu.edu> <m3smel2pux.fsf@gossamer.airs.com>
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~