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 support for referencing types from function bodies


Kenneth Zadeck wrote:

This is exactly what I did not want to do.  Because now the output
gimple will be different from the input gimple and it will make it more
difficult to verify that I am doing the lto reading and writing correctly.

I don't think there's a perfect choice here. You reasonably want the GIMPLE to be identical on read/write, but I, also reasonably, don't want to write code we don't need in the long term.


You/I/we could instead teach the gimplifier on the LTO branch to make the transformation from CONST_DECL to its initial value. That would avoid transforming the GIMPLE as you write it.

--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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