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


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

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