This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lto]: PATCH: Add output of functions.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]