This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix forwprop-29.c testcase
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 10 Dec 2014 16:14:32 +0100 (CET)
- Subject: [PATCH] Fix forwprop-29.c testcase
- Authentication-results: sourceware.org; auth=none
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 <rguenther@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 ("")));