On Wed, Feb 23, 2011 at 11:14:08AM -0800, Nathan Froyd wrote: > The patch below fixes PR 47786, a bit of DECL_CHAIN fallout. The patch > is trivial, even obvious, since it replaces the custom loop with > list_length. > > The only problem is adding a testcase. I can't add the existing > testcase from the PR to gcc.dg/lto/ because the bug isn't triggered when > compiling the files separately; the bug is only triggered when both > source files are specified on the command line to cc1 (*not* to > [x]gcc). AFAIK, there's no infrastructure for doing something like that > in the current testsuite.
In the absence of comments and inspiration about what to do, I've committed this patch sans testcase. -Nathan