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: [PATCH] Enhanced nested functions lowering pass



On Mar 18, 2006, at 7:59 PM, Andrew Pinski wrote:
The goal is to avoid commiting local variables referenced by nested functions
to the "nonlocal frame structure" too early because that cannot be undone by
subsequent passes as the structure is addressable. That would be very useful
for languages that make heavy use of nested functions like Ada.

Actually I think the problem is more to point that Ada turns off struct aliasing
so you the ability to undo it.


Maybe it is time to figure out a way to turn back on -ftree-salias for Ada.

Also do you have a testcase where we would go "wrong" currently?


-- Pinski


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