This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Automaticly eliminating redundant zero initialisers
- To: "jvickers at dial dot pipex dot com" <jvickers at dial dot pipex dot com>,"law at cygnus dot com" <law at cygnus dot com>
- Subject: Re: Automaticly eliminating redundant zero initialisers
- From: "Geert Bosch" <bosch at gnat dot com>
- Date: Mon, 01 May 2000 11:39:23 -0400
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>,"Gerald Pfeifer" <pfeifer at dbai dot tuwien dot ac dot at>,"Graham Stoney" <greyham at research dot canon dot com dot au>,"Tigran Aivazian" <tigran at veritas dot com>
- Reply-To: "Geert Bosch" <bosch at gnat dot com>
On Mon, 01 May 2000 08:19:29 -0600, Jeffrey A Law wrote:
> 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 ?
Yup. It doesn't even have to be a ROM image -- usually I've seen this kind
of stuff used to twiddle debug variables.
This is what -fno-common is for, IIRC.