This is the mail archive of the gcc-bugs@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] optimization/6323



> 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


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