This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto] PATCH: Add support for referencing types from function bodies
On Mon, 2006-09-04 at 18:55 +0000, Joseph S. Myers wrote:
> You could add a bit on VAR_DECLs which says to apply -fmerge-all-constants
> semantics to that VAR_DECL. (And then -fmerge-all-constants might apply
> that bit to all constant variables.)
Then why have CONST_DECLs in the first place? I don't see why the
front-ends would need a CONST_DECL either. Yes for enums you cannot
take the address of their name, then why not make CONST_DECLs local to
the C/C++ front-ends instead?
-- Pinski