This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fzero-initialized-in-bss again
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Eric Botcazou <ebotcazou at act-europe dot fr>
- Cc: gcc at gcc dot gnu dot org
- Date: 30 Apr 2004 15:45:15 -0400
- Subject: Re: -fzero-initialized-in-bss again
- References: <200404302109.55902.ebotcazou@act-europe.fr>
Eric Botcazou <ebotcazou@act-europe.fr> writes:
> We recently (after the 3.4.0 release, unfortunately) discovered that the
> default option -fzero-initialized-in-bss has an annoying side-effect for the
> Ada compiler: it may prevent the user from overriding an object in a library
> (e.g. the runtime) by a local, slightly modified copy of the object.
Whether something like -fzero-initialized-in-bss is correct really
depends on language rules. It sounds like the Ada compiler should
turn it off by default. Or else the Ada compiler should default to
-fno-common; that is also a language rules issue.
Ian