Jakub Jelinek <ja...@redhat.com> writes: > On Wed, Jul 13, 2011 at 01:37:22PM -0700, Andrew Pinski wrote: >> Hi, >> The problem here is that the type of the POINTER_PLUS_EXPR is >> incorrect and also the non folded version leaks to the IR. This patch >> fixes those two problems and fixes the ICE. >> >> OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. > > The testcase is wrongly placed and thus fails everywhere. -fmudflap > causes inclusion of headers and gcc/testsuite/ isn't set up to find them.
There's a far simpler fix, inspired by gcc.dg/dfp/pr35739.c. I think it is better since it gives the testcase wider coverage. Tested with the appropriate runtest invocation on i386-pc-solaris2.11 and alpha-dec-osf5.1b. Will install on mainline and 4.6 branch unless someone objects. Rainer 2011-07-18 Rainer Orth <r...@cebitec.uni-bielefeld.de> * g++.dg/torture/pr49309.C: Add -fpreprocessed to dg-options. diff --git a/gcc/testsuite/g++.dg/torture/pr49309.C b/gcc/testsuite/g++.dg/torture/pr49309.C --- a/gcc/testsuite/g++.dg/torture/pr49309.C +++ b/gcc/testsuite/g++.dg/torture/pr49309.C @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fmudflap" } */ +/* { dg-options "-fpreprocessed -fmudflap" } */ struct A { int i; -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University