[PATCH] optimization/6323
Mark Mitchell
mark@codesourcery.com
Thu Apr 18 10:28:00 GMT 2002
> Rather than track down the exact DECL field that needs to be preserved
> and/or erased between newdecl and olddecl, I took the cleaner approach
> of just giving up attempting to re-use the original DECL in these rare
> cases.
That can't be right; we really don't want multiple DECLs for the same
function floating around. We should find the field and clear it.
But, this bug report looks a lot like PR6352 -- and the patch I'm testing
there seems to fix it.
> Tested against the 3.1 branch with "make bootstrap" and "make -k check"
> on i686-pc-linux-gnu, using all languages except ada, with no new
> regressions. I've placed the new test case in g++.old-deja/g++.other
> with all of the existing C++ builtin tests, these should all be moved
> to the new dg framework eventually, but that's a task for another day
> [and hopefully for someone else :>]
You really should create .dg tests now. It's not hard. :-)
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc-bugs
mailing list