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


> 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


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