This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Automaticly eliminating redundant zero initialisers
- To: John Vickers <John dot Vickers at pace dot co dot uk>
- Subject: Re: Automaticly eliminating redundant zero initialisers
- From: Jamie Lokier <egcs at tantalophile dot demon dot co dot uk>
- Date: Thu, 11 May 2000 15:14:56 +0200
- Cc: Graham Stoney <greyham at research dot canon dot com dot au>, gcc at gcc dot gnu dot org, Linux kernel mailing list <linux-kernel at vger dot rutgers dot edu>
- References: <20000510063522.38ED33C980@elph.research.canon.com.au> <3919B862.9D12BC66@PaceMicro.com>
John Vickers wrote:
> 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.
Note that zero-initialisers probably shouldn't have "common" linkage --
they should simply be allocated in .bss for targets that support
non-common .bss allocation. E.g. ELF.
-- Jamie