This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Automaticly eliminating redundant zero initialisers
- To: Graham Stoney <greyham at research dot canon dot com dot au>
- Subject: Re: Automaticly eliminating redundant zero initialisers
- From: John Vickers <John dot Vickers at pace dot co dot uk>
- Date: Wed, 10 May 2000 20:28:34 +0100
- CC: gcc at gcc dot gnu dot org, Linux kernel mailing list <linux-kernel at vger dot rutgers dot edu>
- Organization: Pace Micro Technology PLC
- References: <20000510063522.38ED33C980@elph.research.canon.com.au>
Graham Stoney wrote:
>
> Yo gang,
>
> Well we seemed to have a fascinating discussion that largely re-covered stuff
> I'd already mentioned in my first message about this. So does anyone know how
> we would go about convincing gcc to perform the optimisation of redundant zero
> initialisers in Linux kernel code?
>
> Thanks,
> Graham
From the last time this got batted arround on egcs/gcc:
http://gcc.gnu.org/ml/gcc/2000-01/msg00633.html
There seemed to be some idea in that thread that
-fconserve-space and -Os might want to affect whether
this optimisation was performed. -fno-common
seems to do the opposite of what you need.
Turn it on, & see if anything breaks.
Looks like the hard part will be getting folks to agree on
a name for the flag to disable it...
John.