Re: [pph] More DECL merging. (issue5268042)

2011-10-13 Thread Diego Novillo
On Wed, Oct 12, 2011 at 23:36, Lawrence Crowl cr...@google.com wrote: Use the mangled name for merging, as this should enable us to handle function overloads.  We use the regular identifier for other declarations, as that should be sufficient and avoids the problem of different typedefs

Re: [pph] More DECL merging. (issue5268042)

2011-10-13 Thread Diego Novillo
I'm seeing an infinite loop in g++.dg/pph/c1limits-externalid.cc. The while() loop in pph_search_in_chain is not ending. Or maybe it's falling into the N^2 trap you mention in that routine? I've added a short timeout to this test and XFAIL'd it so you can debug it. Diego.

[pph] More DECL merging. (issue5268042)

2011-10-12 Thread Lawrence Crowl
Use the mangled name for merging, as this should enable us to handle function overloads. We use the regular identifier for other declarations, as that should be sufficient and avoids the problem of different typedefs mangling to the same name. Merge struct members as well as namespace members.