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


Gerald Pfeifer wrote:
> 
> 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.

As has been said elsewhere, it's nothing to do with Linux,
it's about language definitions - although the Linux folks
sometimes seem to get a bit bothered when the language
doesn't do what they know it should...

My 2d is that some strange hackers like to edit binary files 
(ROM images etc) to change parameter values, and this is hard to
do if the variables in question live in the bss.  So if this
optimisation happens, can we have a way of turning it off ?

I think this has come up before, and some of the strange hackers
in question are regular contributors to egcs^H^H^H^Hgcc.

John.

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