-fzero-initialized-in-bss again

Ian Lance Taylor ian@wasabisystems.com
Fri Apr 30 21:39:00 GMT 2004


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



More information about the Gcc mailing list