This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -fzero-initialized-in-bss again


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]