This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] fix PR 47786, DECL_CHAIN fallout with -flto
- From: Nathan Froyd <froydnj at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: joseph at codesourcery dot com
- Date: Mon, 7 Mar 2011 07:33:41 -0800
- Subject: Re: [PATCH] fix PR 47786, DECL_CHAIN fallout with -flto
- References: <20110223191408.GX26625@codesourcery.com>
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