This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix forwprop-29.c testcase


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 ("")));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]