This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Automaticly eliminating redundant zero initialisers
- To: George Anzinger <george at pioneer dot net>
- Subject: Re: Automaticly eliminating redundant zero initialisers
- From: Horst von Brand <vonbrand at sleipnir dot valparaiso dot cl>
- Date: Mon, 01 May 2000 11:53:31 -0400
- cc: gcc at gcc dot gnu dot org
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