The testcase relies on inlining two functions but if ICF unifies
them (they are equal) then for some reason that doesn't happen.
Even more weird on x86_64 ICF doesn't unify them.

Well, the testcase isn't about ICF so simply disable it.

Richard.

2014-12-10  Richard Biener  <rguent...@suse.de>

        * gcc.dg/tree-ssa/forwprop-29.c: Add -fno-ipa-icf.

Index: gcc/testsuite/gcc.dg/tree-ssa/forwprop-29.c
===================================================================
--- gcc/testsuite/gcc.dg/tree-ssa/forwprop-29.c (revision 218515)
+++ gcc/testsuite/gcc.dg/tree-ssa/forwprop-29.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -fno-ipa-icf" } */
 
 void runtime_error (void) __attribute__ ((noreturn));
 void compiletime_error (void) __attribute__ ((noreturn, error ("")));

Reply via email to