This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fzero-initialized-in-bss again
- From: Eric Botcazou <ebotcazou at act-europe dot fr>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Ian Lance Taylor <ian at wasabisystems dot com>,Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>,gcc at gcc dot gnu dot org
- Date: Sat, 1 May 2004 16:52:46 +0200
- Subject: Re: -fzero-initialized-in-bss again
- References: <10404302000.AA05451@vlsi1.ultra.nyu.edu> <m3smel2pux.fsf@gossamer.airs.com> <20040430213905.GA5637@redhat.com>
> ... 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.
What about Fortran? It seems that com.c:start_decl unconditionally sets the
flag, much like Ada (even without testing -fcommon).
--
Eric Botcazou