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]

Re: Automaticly eliminating redundant zero initialisers


George Anzinger <george@pioneer.net> said:

[...]

> Soon as you depend on this some OS dude will fill bss with -1s so he can
> tell what was used... or some such.  Seems like a bad idea to depend on
> bss being anything at all.

The C standard demands static globals initialized as zero, so this would be
illegal anyway.
-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616

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