This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto]: PATCH: Add output of functions.
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Mark Mitchell <mark at codesourcery dot com>, Kenneth Zadeck <zadeck at naturalbridge dot com>, "Berlin, Daniel" <dberlin at dberlin dot org>, "Edelsohn, David" <dje at watson dot ibm dot com>, drow at false dot org
- Date: Fri, 8 Sep 2006 22:21:33 +0200
- Subject: Re: [lto]: PATCH: Add output of functions.
- References: <45007C7D.4050406@naturalbridge.com> <4501586D.2070701@naturalbridge.com> <45018D60.8050505@codesourcery.com>
On Friday 08 September 2006 17:33, Mark Mitchell wrote:
> As we've discussed, CONST_DECLs should be replaced with their
> DECL_INITIAL values. That can happen in the gimplifier, or in your
> code, but there's no need to worry about how to write them out and
> there's no need to ever create a CONST_DECL in the reader.
I wasn't in that discussion so ignore me if the point is moot, but...
How are you going to handle addressable CONST_DECLs? The Fortran
front end (and probably other front ends) use such CONST_DECLs to
pass constants by reference. Seems to me you can't replace those
with their DECL_INITIAL, and that you have to be able to write 'em
out and read 'em back in...?
Gr.
Steven