[PATCH] IPA ICF fallout: disable IPA ICF for a test

2014-11-10 Thread Martin Liška

Hello.

In gcc.dg/tree-ssa/ldist-19.c, there's a pair of functions (one with 'char' and 
second with 'unsigned char'). These two functions are merged by IPA ICF on 
targets that where 'char' == 'unsigned char'. So that it would be easier to 
disable the optimization.

Ready for trunk?

Thanks,
Martin
gcc/testsuite/ChangeLog:

2014-11-10  Martin Liska  mli...@suse.cz

* gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
for the test because of default char signedness
on powerpc64 target.
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ldist-19.c b/gcc/testsuite/gcc.dg/tree-ssa/ldist-19.c
index 8ea9cea..9ab681f 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ldist-19.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ldist-19.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options -O3 -fdump-tree-ldist-details } */
+/* { dg-options -O3 -fno-ipa-icf -fdump-tree-ldist-details } */
 
 struct Foo
 {


Re: [PATCH] IPA ICF fallout: disable IPA ICF for a test

2014-11-10 Thread Richard Biener
On Mon, Nov 10, 2014 at 11:51 AM, Martin Liška mli...@suse.cz wrote:
 Hello.

 In gcc.dg/tree-ssa/ldist-19.c, there's a pair of functions (one with 'char'
 and second with 'unsigned char'). These two functions are merged by IPA ICF
 on targets that where 'char' == 'unsigned char'. So that it would be easier
 to disable the optimization.

 Ready for trunk?

Ok.

Thanks,
Richard.

 Thanks,
 Martin