This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fzero-initialized-in-bss again
- From: Geoff Keating <geoffk at geoffk dot org>
- To: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Cc: gcc at gcc dot gnu dot org
- Date: 03 May 2004 10:56:36 -0700
- Subject: Re: -fzero-initialized-in-bss again
- References: <10405011530.AA09902@vlsi1.ultra.nyu.edu>
kenner@vlsi1.ultra.nyu.edu (Richard Kenner) writes:
> What we are discussing is what object file section each variable
> should go into. And what I'm saying is that this shouldn't depend on
> whether a variable was written in C or Ada: it should only be a function
> of language-independent attributes.
This statement really doesn't make sense to me. It's like saying that
what section a variable goes into should be the same between C and
C++; if it was true, then we should be able to delete thousands of
lines from the C++ frontend that are concerned with section and
linkage selection.
It's the responsibility of the language description (that is, the
standard) to specify what behaviour is required, and then of the
language frontend to set flags like DECL_COMMON appropriately to
get that behaviour.
--
- Geoffrey Keating <geoffk@geoffk.org>