This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Automaticly eliminating redundant zero initialisers
- To: pfeifer at dbai dot tuwien dot ac dot at (Gerald Pfeifer)
- Subject: Re: Automaticly eliminating redundant zero initialisers
- From: Alan Cox <alan at lxorguk dot ukuu dot org dot uk>
- Date: Mon, 1 May 2000 13:04:44 +0100 (BST)
- Cc: tigran at veritas dot com (Tigran Aivazian),greyham at research dot canon dot com dot au (Graham Stoney),rmk at arm dot linux dot org dot uk (Russell King),linux-kernel at vger dot rutgers dot edu (Linux kernel mailing list),gcc at gcc dot gnu dot org
> On Mon, 1 May 2000, Tigran Aivazian wrote:
> > oops, I just realised you are asking for something slightly different.
> > What I meant is that you can now safely ignore zero-initializers because
> > BSS is zero-cleared by the kernel explicitly.
>
> *The* kernel does not exist. Not all of the world is Linux.
Zero clearing the undefined global variables is part of the C language standard
Some ancient (<< 1.0 ) Linux stuff didnt do so