This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fzero-initialized-in-bss again
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: rth at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 30 Apr 04 17:47:15 EDT
- Subject: Re: -fzero-initialized-in-bss again
... this is *not* the case in C or C++.
The only way a variable should *ever* wind up in COMMON is if DECL_COMMON
is set by the front end. Otherwise it should go in .bss or .data.
Yes, but the question is when should DECL_COMMON be set by the front end.
Ada copies the code from c-decl.c, but does it from 2.8.1, where it's
essentially !flag_no_common. But in GCC 3, it's also not set if the
variable is initialized. Should Ada do that as well? Would that
address this issue?