-fzero-initialized-in-bss again

Ian Lance Taylor ian@wasabisystems.com
Fri Apr 30 21:52:00 GMT 2004


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



More information about the Gcc mailing list