This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fzero-initialized-in-bss again
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Cc: gcc at gcc dot gnu dot org
- Date: 30 Apr 2004 16:05:42 -0400
- Subject: Re: -fzero-initialized-in-bss again
- References: <10404302000.AA05451@vlsi1.ultra.nyu.edu>
kenner@vlsi1.ultra.nyu.edu (Richard Kenner) writes:
> Whether something like -fzero-initialized-in-bss is correct really
> depends on language rules. It sounds like the Ada compiler should
> turn it off by default. Or else the Ada compiler should default to
> -fno-common; that is also a language rules issue.
>
> I think Eric was a bit misleading here. Although the problem occured
> with an Ada program, it is not language-specific and can occur in
> any language.
Can you or he express it in C terms?
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.
But probably I misunderstand.
Ian