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 libertysurf dot fr>
- To: Ian Lance Taylor <ian at wasabisystems dot com>
- Cc: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner),gcc at gcc dot gnu dot org
- Date: Sat, 1 May 2004 10:01:37 +0200
- Subject: Re: -fzero-initialized-in-bss again
- References: <10404302000.AA05451@vlsi1.ultra.nyu.edu> <m3smel2pux.fsf@gossamer.airs.com>
> Is the problem that -fzero-initialized-in-bss is causing a zero
> initialized variable to become a common variable?
Yes, precisely.
> A BSS variable should not be a common variable. That would be wrong.
That's what the Ada compiler does: all variables that would be put in .bss
end up in .common if -fcommon is enabled.
I guess we have to clarify a bit the relationship between Ada and .common
then.
--
Eric Botcazou