IPA ICF, part 4/5
authorMartin Liska <marxin@gcc.gnu.org>
Thu, 16 Oct 2014 10:51:55 +0000 (10:51 +0000)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 16 Oct 2014 10:51:55 +0000 (10:51 +0000)
* c-c++-common/rotate-1.c: Options changed to not collide
with a new IPA ICF pass.
* c-c++-common/rotate-2.c: Likewise.
* c-c++-common/rotate-3.c: Likewise.
* c-c++-common/rotate-4.c: Likewise.
* g++.dg/cpp0x/rv-return.C: Likewise.
* g++.dg/cpp0x/rv1n.C: Likewise.
* g++.dg/cpp0x/rv1p.C: Likewise.
* g++.dg/cpp0x/rv2n.C: Likewise.
* g++.dg/cpp0x/rv3n.C: Likewise.
* g++.dg/cpp0x/rv4n.C: Likewise.
* g++.dg/cpp0x/rv5n.C: Likewise.
* g++.dg/cpp0x/rv6n.C: Likewise.
* g++.dg/cpp0x/rv7n.C: Likewise.
* g++.dg/ipa/devirt-g-1.C: Likewise.
* g++.dg/ipa/inline-1.C: Likewise.
* g++.dg/ipa/inline-2.C: Likewise.
* g++.dg/ipa/inline-3.C: Likewise.
* g++.dg/opt/pr30965.C: Likewise.
* g++.dg/tree-ssa/pr19637.C: Likewise.
* gcc.dg/guality/csttest.c: Likewise.
* gcc.dg/ipa/iinline-4.c (struct S): Likewise.
* gcc.dg/ipa/iinline-7.c: Likewise.
* gcc.dg/ipa/ipa-pta-13.c: Likewise.
* gcc.dg/ipa/ipacost-1.c: Likewise.
* gcc.dg/ipa/ipacost-2.c: Likewise.
* gcc.dg/ipa/ipcp-agg-6.c: Likewise.
* gcc.dg/ipa/remref-2a.c: Likewise.
* gcc.dg/ipa/remref-2b.c: Likewise.
* gcc.dg/pr46309-2.c: Likewise.
* gcc.dg/torture/ipa-pta-1.c: Likewise.
* gcc.dg/tree-ssa/andor-3.c (int f): Likewise.
* gcc.dg/tree-ssa/andor-4.c: Likewise.
* gcc.dg/tree-ssa/andor-5.c: Likewise.
* gcc.dg/vect/no-vfa-pr29145.c: Likewise.
* gcc.dg/vect/vect-cond-10.c: Likewise.
* gcc.dg/vect/vect-cond-9.c: Likewise.
* gcc.dg/vect/vect-widen-mult-const-s16.c: Likewise.
* gcc.dg/vect/vect-widen-mult-const-u16.c: Likewise.
* gcc.dg/vect/vect-widen-mult-half-u8.c: Likewise.
* gcc.target/i386/bmi-1.c: Likewise.
* gcc.target/i386/bmi-2.c: Likewise.
* gcc.target/i386/pr56564-2.c: Likewise.

From-SVN: r216306

43 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/rotate-1.c
gcc/testsuite/c-c++-common/rotate-2.c
gcc/testsuite/c-c++-common/rotate-3.c
gcc/testsuite/c-c++-common/rotate-4.c
gcc/testsuite/g++.dg/cpp0x/rv-return.C
gcc/testsuite/g++.dg/cpp0x/rv1n.C
gcc/testsuite/g++.dg/cpp0x/rv1p.C
gcc/testsuite/g++.dg/cpp0x/rv2n.C
gcc/testsuite/g++.dg/cpp0x/rv3n.C
gcc/testsuite/g++.dg/cpp0x/rv4n.C
gcc/testsuite/g++.dg/cpp0x/rv5n.C
gcc/testsuite/g++.dg/cpp0x/rv6n.C
gcc/testsuite/g++.dg/cpp0x/rv7n.C
gcc/testsuite/g++.dg/ipa/devirt-g-1.C
gcc/testsuite/g++.dg/ipa/inline-1.C
gcc/testsuite/g++.dg/ipa/inline-2.C
gcc/testsuite/g++.dg/ipa/inline-3.C
gcc/testsuite/g++.dg/opt/pr30965.C
gcc/testsuite/g++.dg/tree-ssa/pr19637.C
gcc/testsuite/gcc.dg/guality/csttest.c
gcc/testsuite/gcc.dg/ipa/iinline-4.c
gcc/testsuite/gcc.dg/ipa/iinline-7.c
gcc/testsuite/gcc.dg/ipa/ipa-pta-13.c
gcc/testsuite/gcc.dg/ipa/ipacost-1.c
gcc/testsuite/gcc.dg/ipa/ipacost-2.c
gcc/testsuite/gcc.dg/ipa/ipcp-agg-6.c
gcc/testsuite/gcc.dg/ipa/remref-2a.c
gcc/testsuite/gcc.dg/ipa/remref-2b.c
gcc/testsuite/gcc.dg/pr46309-2.c
gcc/testsuite/gcc.dg/torture/ipa-pta-1.c
gcc/testsuite/gcc.dg/tree-ssa/andor-3.c
gcc/testsuite/gcc.dg/tree-ssa/andor-4.c
gcc/testsuite/gcc.dg/tree-ssa/andor-5.c
gcc/testsuite/gcc.dg/vect/no-vfa-pr29145.c
gcc/testsuite/gcc.dg/vect/vect-cond-10.c
gcc/testsuite/gcc.dg/vect/vect-cond-9.c
gcc/testsuite/gcc.dg/vect/vect-widen-mult-const-s16.c
gcc/testsuite/gcc.dg/vect/vect-widen-mult-const-u16.c
gcc/testsuite/gcc.dg/vect/vect-widen-mult-half-u8.c
gcc/testsuite/gcc.target/i386/bmi-1.c
gcc/testsuite/gcc.target/i386/bmi-2.c
gcc/testsuite/gcc.target/i386/pr56564-2.c

index e281e8c9bb9e3f99a6aed7e76bff2d2883540b6c..32e80803734d3ccaf22d6557e062971a0cbd8802 100644 (file)
@@ -1,4 +1,51 @@
-2014-10-16  Richard Biener  <rguenther@suse.de>
+2014-10-16  Martin Liska  <mliska@suse.cz>
+           Jan Hubicka  <hubicka@ucw.cz>
+
+       * c-c++-common/rotate-1.c: Options changed to not collide
+       with a new IPA ICF pass.
+       * c-c++-common/rotate-2.c: Likewise.
+       * c-c++-common/rotate-3.c: Likewise.
+       * c-c++-common/rotate-4.c: Likewise.
+       * g++.dg/cpp0x/rv-return.C: Likewise.
+       * g++.dg/cpp0x/rv1n.C: Likewise.
+       * g++.dg/cpp0x/rv1p.C: Likewise.
+       * g++.dg/cpp0x/rv2n.C: Likewise.
+       * g++.dg/cpp0x/rv3n.C: Likewise.
+       * g++.dg/cpp0x/rv4n.C: Likewise.
+       * g++.dg/cpp0x/rv5n.C: Likewise.
+       * g++.dg/cpp0x/rv6n.C: Likewise.
+       * g++.dg/cpp0x/rv7n.C: Likewise.
+       * g++.dg/ipa/devirt-g-1.C: Likewise.
+       * g++.dg/ipa/inline-1.C: Likewise.
+       * g++.dg/ipa/inline-2.C: Likewise.
+       * g++.dg/ipa/inline-3.C: Likewise.
+       * g++.dg/opt/pr30965.C: Likewise.
+       * g++.dg/tree-ssa/pr19637.C: Likewise.
+       * gcc.dg/guality/csttest.c: Likewise.
+       * gcc.dg/ipa/iinline-4.c (struct S): Likewise.
+       * gcc.dg/ipa/iinline-7.c: Likewise.
+       * gcc.dg/ipa/ipa-pta-13.c: Likewise.
+       * gcc.dg/ipa/ipacost-1.c: Likewise.
+       * gcc.dg/ipa/ipacost-2.c: Likewise.
+       * gcc.dg/ipa/ipcp-agg-6.c: Likewise.
+       * gcc.dg/ipa/remref-2a.c: Likewise.
+       * gcc.dg/ipa/remref-2b.c: Likewise.
+       * gcc.dg/pr46309-2.c: Likewise.
+       * gcc.dg/torture/ipa-pta-1.c: Likewise.
+       * gcc.dg/tree-ssa/andor-3.c (int f): Likewise.
+       * gcc.dg/tree-ssa/andor-4.c: Likewise.
+       * gcc.dg/tree-ssa/andor-5.c: Likewise.
+       * gcc.dg/vect/no-vfa-pr29145.c: Likewise.
+       * gcc.dg/vect/vect-cond-10.c: Likewise.
+       * gcc.dg/vect/vect-cond-9.c: Likewise.
+       * gcc.dg/vect/vect-widen-mult-const-s16.c: Likewise.
+       * gcc.dg/vect/vect-widen-mult-const-u16.c: Likewise.
+       * gcc.dg/vect/vect-widen-mult-half-u8.c: Likewise.
+       * gcc.target/i386/bmi-1.c: Likewise.
+       * gcc.target/i386/bmi-2.c: Likewise.
+       * gcc.target/i386/pr56564-2.c: Likewise.
+
+2014-10-16  Richard Biener  <rguenther@suse.de>i
 
        PR tree-optimization/63168
        * gcc.dg/tree-ssa/loop-40.c: New testcase.
index afdaa289a394096ae573f503384ef25fc702dae8..bca9dd8d1cc369a24cf9b0cedfbd5a2fca9efbe7 100644 (file)
@@ -1,6 +1,6 @@
 /* Check rotate pattern detection.  */
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-options "-O2 -fno-ipa-icf -fdump-tree-optimized" } */
 /* { dg-final { scan-tree-dump-times "r\[<>]\[<>]" 96 "optimized" } } */
 /* { dg-final { cleanup-tree-dump "optimized" } } */
 
index 109fd32bc7d609d2cfe3dd544f4a72e7b8cb6fce..4ffa218e4af68fd5b5fa6edb6cedad54594a364f 100644 (file)
@@ -1,6 +1,6 @@
 /* Check rotate pattern detection.  */
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-options "-O2 -fno-ipa-icf -fdump-tree-optimized" } */
 /* Rotates should be recognized only in functions with | instead of + or ^,
    or in functions that have constant shift counts (unused attribute on y).  */
 /* { dg-final { scan-tree-dump-times "r\[<>]\[<>]" 48 "optimized" } } */
index 8dc8313ee2a0fb8b0f8ce260a1b73ea99b6ee645..aaa9f507f8519e2da3db438dc494d1658d135464 100644 (file)
@@ -1,6 +1,6 @@
 /* Check rotate pattern detection.  */
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-options "-O2 -fno-ipa-icf -fdump-tree-optimized" } */
 /* { dg-final { scan-tree-dump-times "r\[<>]\[<>]" 96 "optimized" } } */
 /* { dg-final { cleanup-tree-dump "optimized" } } */
 
index 2f433b33272c500d32916e8dfb9556e199628a58..0a21177ad94a644a24631d701340c2a0f2f27c04 100644 (file)
@@ -1,6 +1,6 @@
 /* Check rotate pattern detection.  */
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-options "-O2 -fno-ipa-icf -fdump-tree-optimized" } */
 /* Rotates should be recognized only in functions with | instead of + or ^,
    or in functions that have constant shift counts (unused attribute on y).  */
 /* { dg-final { scan-tree-dump-times "r\[<>]\[<>]" 48 "optimized" } } */
index 12a15aa30c39d434f2df15399fa6dd56f5f6a2b2..6d57209b5471c927d9876fd82ca5c092ab613a2f 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/41815
 // { dg-do compile { target c++11 } }
+// { dg-options "-fno-ipa-icf" }
 
 template<typename T, typename U> struct same_type;
 template<typename T> struct same_type<T, T> {};
index 204ca31a00d7b317d4aef42efd88f66233466767..f5e75681758285a7c99af69dd86171dae3a212be 100644 (file)
@@ -1,8 +1,10 @@
 // I, Howard Hinnant, hereby place this code in the public domain.
+/* { dg-additional-options "-fno-ipa-icf" } */
 
 // Test overload resolution among reference types
 
 // { dg-do compile { target c++11 } }
+// { dg-additional-options "-fno-ipa-icf" }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index e4c0ab16ddb907bbed9b3a5781f9e1306438374e..e87ec0e91f76467718d78257d0bd9f18cd150c7d 100644 (file)
@@ -4,6 +4,7 @@
 
 // { dg-do compile { target c++11 } }
 // { dg-skip-if "packed attribute missing for struct one/three/five/seven" { "epiphany-*-*" } { "*" } { "" } }
+// { dg-additional-options "-fno-ipa-icf" }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index 9677f58982cf88d6288d7d9a219ff25ead8a1f71..663a66b6d909080f9cf6e3b46e7c08b9794cf5ce 100644 (file)
@@ -3,7 +3,7 @@
 // Test overload resolution among reference types
 
 // { dg-do compile { target c++11 } }
-// { dg-options "" }
+// { dg-options "-fno-ipa-icf" }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index 8a1730b61ef01096809673ec9c2715065288bc51..b7c1d7a234338270c357ac369dad64dddc2838f0 100644 (file)
@@ -3,7 +3,7 @@
 // Test overload resolution among reference types
 
 // { dg-do compile { target c++11 } }
-// { dg-options "" }
+// { dg-options "-fno-ipa-icf" }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index e64856de70128496a8295d2bd8f22c76dc43479d..29deb3fc81b30f4bf5f3568c6b4cbc92410655f8 100644 (file)
@@ -3,7 +3,7 @@
 // Test overload resolution among reference types
 
 // { dg-do compile { target c++11 } }
-// { dg-options "" }
+// { dg-options "-fno-ipa-icf" }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index 90d541830637824c6957e1f793453efe4f0d42af..f11d07a39218b77cd8a58c0c6c4b1fdbbad6da7f 100644 (file)
@@ -3,7 +3,7 @@
 // Test overload resolution among reference types
 
 // { dg-do compile { target c++11 } }
-// { dg-options "" }
+// { dg-options "-fno-ipa-icf" }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index 5bd9a23026199ade318b1d0c403774a625b6c720..0ebbe33e1d1bf530f56b7a106ae31687e048d179 100644 (file)
@@ -3,7 +3,7 @@
 // Test overload resolution among reference types
 
 // { dg-do compile { target c++11 } }
-// { dg-options "" }
+// { dg-options "-fno-ipa-icf" }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index 38ca7b8aff253099a2e5d20df375259a9147d2c8..d9e371b8adb8d21619800bd39ce872d145eae5cf 100644 (file)
@@ -3,7 +3,7 @@
 // Test overload resolution among reference types
 
 // { dg-do compile { target c++11 } }
-// { dg-options "" }
+// { dg-options "-fno-ipa-icf" }
 
 template <bool> struct sa;
 template <> struct sa<true> {};
index 175f24efbbd7d55b44c3eeaebf215e62e899c390..1530fdbaa09133c2eac1f0c2950b05046e5d0a2a 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do compile }
-// { dg-options "-O2 -fdump-ipa-cp -fdump-tree-optimized" }
+// { dg-options "-O2 -fdump-ipa-cp -fno-ipa-icf -fdump-tree-optimized" }
 
 struct S { S(); virtual void xyzzy(); void otherstuff(); };
 struct R { int a; S s; R(); };
index dbbfb4e33bdddc50576c00076e15dfa2feba4a2c..3a6a04180566e53e8794f8f427254158442969fe 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-ipa-inline --param max-early-inliner-iterations=1" } */
+/* { dg-options "-O2 -fdump-ipa-inline -fno-ipa-icf --param max-early-inliner-iterations=1" } */
 /* { dg-add-options bind_pic_locally } */
 
 namespace std {
index fd284a1e23dc04bbfd38f9ee42edb0518c47e1d6..d1e46c08393211265a1270995bea8038ad77a95b 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-ipa-inline --param max-early-inliner-iterations=1" } */
+/* { dg-options "-O2 -fdump-ipa-inline -fno-ipa-icf --param max-early-inliner-iterations=1" } */
 /* { dg-add-options bind_pic_locally } */
 
 namespace std {
index 8d5f905cf4f43c4ee4a413fae9b33fb78bdb3d94..7315bf5396e74c971193c101e9d09a3a52a57319 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-ipa-inline --param max-early-inliner-iterations=1" } */
+/* { dg-options "-O2 -fdump-ipa-inline -fno-ipa-icf --param max-early-inliner-iterations=1" } */
 /* { dg-add-options bind_pic_locally } */
 
 #include <algorithm>
index 91bb55c05d8b61bdc44dbf48e374858c881d843e..45393fd6b5c6b0f2d77646d262dd2bea48d6bf7c 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -fdump-tree-optimized" } */
+/* { dg-options "-O3 -fno-ipa-icf -fdump-tree-optimized" } */
 
 #include <tr1/functional>
 #include <algorithm>
index 2d1dcceba42f59b286e210d8e1086ef730b845fa..92f673f9ea7834ee2f7f4eb318309ce9d0750486 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-dom1" } */
+/* { dg-options "-O2 -fno-ipa-icf -fdump-tree-dom1" } */
 
 #include <new>
 
index 4480c715e35f78716eae73f647af4c645868edb9..05e1ad7249c70357ae1cf466aca1105a71efed56 100644 (file)
@@ -1,6 +1,6 @@
 /* PR debug/49676 */
 /* { dg-do run { target lp64 } } */
-/* { dg-options "-g" } */
+/* { dg-options "-g -fno-ipa-icf" } */
 
 volatile int v;
 
index 71faae2c97a2e2d89e34366c1e369d7e10b73f7a..3f295df7dd0e47e3f985c7cd4b1102f154d6ee49 100644 (file)
@@ -1,7 +1,7 @@
 /* Verify that simple indirect calls are inlined even without early
    inlining..  */
 /* { dg-do compile } */
-/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining"  } */
+/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-icf"  } */
 
 struct S
 {
index c95d374d24898c2ee66aeebb6b7905003ee9fcde..61e8d0b958e2f1a032736036528f8b645cb2808b 100644 (file)
@@ -1,7 +1,7 @@
 /* Verify that simple indirect calls are inlined even without early
    inlining..  */
 /* { dg-do run } */
-/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining"  } */
+/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-icf"  } */
 
 extern void abort (void);
 
index 0f46e984bce61cedbf4b410f473bfb7a850ba077..f7f95f4c64a5385c4e0c3fb87ecf4dc8090ca489 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do link } */
-/* { dg-options "-O2 -fipa-pta -fdump-ipa-pta-details -fdump-tree-fre2" } */
+/* { dg-options "-O2 -fipa-pta -fdump-ipa-pta-details -fdump-tree-fre2 -fno-ipa-icf" } */
 
 static int x, y;
 
index 70c635e6bba0d3515fe0987c88a05a7be30336a0..dc6b8f669836aa32e6609f63c7a77552f1376f49 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-Os -fipa-cp -fdump-ipa-cp -fno-early-inlining -fdump-tree-optimized"  } */
+/* { dg-options "-Os -fipa-cp -fdump-ipa-cp -fno-early-inlining -fdump-tree-optimized -fno-ipa-icf"  } */
 
 int array[100];
 
index 290d1254c2d92a72043bb95310bb0fd5f1b18fca..49b75c05cf5f95120e6a1020b287161d8198bab5 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -fipa-cp -fipa-cp-clone -fdump-ipa-cp -fno-early-inlining -fdump-tree-optimized"  } */
+/* { dg-options "-O3 -fipa-cp -fipa-cp-clone -fdump-ipa-cp -fno-early-inlining -fdump-tree-optimized -fno-ipa-icf"  } */
 /* { dg-add-options bind_pic_locally } */
 
 int array[100];
index 050e13bf5026f4e3333081dc94e86499a7977ca7..5d6425b5d2f161302e3415fd5494d573e53f3a4e 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -fno-ipa-sra -fdump-ipa-cp-details -fdump-tree-optimized-slim"  } */
+/* { dg-options "-O3 -fno-ipa-sra -fdump-ipa-cp-details -fdump-tree-optimized-slim -fno-ipa-icf"  } */
 /* { dg-add-options bind_pic_locally } */
 
 struct S
index 1e0df2e84d2d924a3214053c50ed2edd8e7de656..4697a18abc5bab87e78699b98be10f083d411a5a 100644 (file)
@@ -1,7 +1,7 @@
 /* Verify that indirect inlining can also remove references of the functions it
    discovers calls for.  */
 /* { dg-do compile } */
-/* { dg-options "-O3 -fno-early-inlining -fno-ipa-cp -fdump-ipa-inline -fdump-tree-optimized"  } */
+/* { dg-options "-O3 -fno-early-inlining -fno-ipa-cp -fdump-ipa-inline -fdump-tree-optimized -fno-ipa-icf"  } */
 
 int global;
 
index 554f306d26254cadb3826c617363fdb67adc083a..7799033d34e1e66039451d4a1e4d15f31b710ec3 100644 (file)
@@ -2,7 +2,7 @@
    discovers calls for, even when nodes being inlined are virtual IPA-CP
    clones.  */
 /* { dg-do compile } */
-/* { dg-options "-O3 -fno-early-inlining -fdump-ipa-cp-details -fdump-ipa-inline -fdump-tree-optimized"  } */
+/* { dg-options "-O3 -fno-early-inlining -fdump-ipa-cp-details -fdump-ipa-inline -fdump-tree-optimized -fno-ipa-icf"  } */
 
 
 int global;
index f407e6607054ab9a160fc097a0b7078fdc37ba99..00ffee145596ffa5bdc0fd2579bf2b06a584ca4e 100644 (file)
@@ -1,6 +1,6 @@
 /* PR tree-optimization/46309 */
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-reassoc-details" } */
+/* { dg-options "-O2 -fno-ipa-icf -fdump-tree-reassoc-details" } */
 
 int foo (void);
 
index aae987de32ace0a97faf3ce0906f49d243b6c481..80303a54eb6a790bdd6ff07f3b6a971f1fe80a1a 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target { nonpic } } } */
-/* { dg-options "-fipa-pta -fdump-ipa-pta" } */
+/* { dg-options "-fipa-pta -fdump-ipa-pta -fno-ipa-icf" } */
 /* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */
 
 struct X { char x; char y; };
index a1401c0790bf201f43be9b9c48da5688979c9dbc..8b2f206a142f58a45cc824b1e8d3ef700f0a6ce3 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-options "-O2 -fno-ipa-icf -fdump-tree-optimized" } */
 
 int f(int y, int x)
 {
index 1dbdca7dfffb074a96dc9324adb587d40fa6a478..46a4826276047ca953bf6ed330749ba81d8ac153 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-options "-O2 -fno-ipa-icf -fdump-tree-optimized" } */
 
 int f(int y, int x)
 {
index 15097272a1d3614e8d694cd74d47ce30f8d7a223..929851ca4f0dde5a06c6d7179f5dc33eb2130383 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-options "-O2 -fno-ipa-icf -fdump-tree-optimized" } */
 
 int f(int y, int x)
 {
index e475ffff6385162be8bf3c8c527c6e8cb137a24b..5896271aba2e5ef910a4ef41b167cbafdd7d3412 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-require-effective-target vect_int } */
+/* { dg-additional-options "-fno-ipa-icf" } */
 
 #include <stdarg.h>
 #include "tree-vect.h"
index 687d42f0591572877253c05b39346b3249dd8ed3..da2eb05fc3b79f193f01f59478fbd9fcd86ab056 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-require-effective-target vect_cond_mixed } */
+/* { dg-additional-options "-fno-ipa-icf" } */
 
 #include "tree-vect.h"
 
index cfa0363b2fe8e68fb6091e7a1197b07cf146fe7b..de88fc57f5b6ec2a2be8abaeab7cc54a6a461b1f 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-require-effective-target vect_cond_mixed } */
+/* { dg-additional-options "-fno-ipa-icf" } */
 
 #include "tree-vect.h"
 
index a2fe9755abcd5e253ff70f8a3793e978b325ebe2..895bbd0276d94bcc4e0276681ffe83639bad217c 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-require-effective-target vect_int } */
+/* { dg-additional-options "-fno-ipa-icf" } */
 
 #include "tree-vect.h"
 #include <stdlib.h>
index e712da964239f75b9266467ee32d9c6f2c595607..f69abfd0cb9fa317a4e17bc8874b2e111424e506 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-require-effective-target vect_int } */
+/* { dg-additional-options "-fno-ipa-icf" } */
 
 #include "tree-vect.h"
 #include <stdlib.h>
@@ -74,4 +75,3 @@ int main (void)
 /* { dg-final { scan-tree-dump-times "vect_recog_widen_mult_pattern: detected" 2 "vect" { target vect_widen_mult_hi_to_si_pattern } } } */
 /* { dg-final { scan-tree-dump-times "pattern recognized" 2 "vect" { target vect_widen_mult_hi_to_si_pattern } } } */
 /* { dg-final { cleanup-tree-dump "vect" } } */
-
index 39078dfc4f3abc0bc4a98591e1fd98fb8b2a8bc6..3f0758544ed90e2bf91e38ffce2e6b9b6f635a9a 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-require-effective-target vect_int } */
+/* { dg-additional-options "-fno-ipa-icf" } */
 
 #include "tree-vect.h"
 #include <stdlib.h>
index c66a9d83b297e4c109bd21f8d9d29c929105bedb..738705e29d8d5abe34320ff105dca9289ae61e56 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -mbmi " } */
+/* { dg-options "-O2 -fno-ipa-icf -mbmi " } */
 /* { dg-final { scan-assembler "andn\[^\\n]*eax" } } */
 /* { dg-final { scan-assembler-times "bextr\[ \\t]+\[^\\n]*eax" 2 } } */
 /* { dg-final { scan-assembler-times "blsi\[^\\n]*eax" 2 } } */
index 6eea66aa0f670f9c0b7c808bc639b208c363b407..25fb86bbf6b4d8dd68a094abaf1de65475f34f0b 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target { ! { ia32 }  } } } */
-/* { dg-options "-O2 -mbmi " } */
+/* { dg-options "-O2 -fno-ipa-icf -mbmi " } */
 /* { dg-final { scan-assembler "andn\[^\\n]*rax" } } */
 /* { dg-final { scan-assembler-times "bextr\[ \\t]+\[^\\n]*rax" 2 } } */
 /* { dg-final { scan-assembler-times "blsi\[^\\n]*rax" 2 } } */
index fc89a4ccafc6d85a082f4a1173e794a164eaac46..c42bfae2860cc4fe5fda8f90e13fb2e5f8ff8a3d 100644 (file)
@@ -1,6 +1,6 @@
 /* PR target/56564 */
 /* { dg-do compile { target { *-*-linux* && lp64 } } } */
-/* { dg-options "-O3 -fno-pic -fdump-tree-optimized" } */
+/* { dg-options "-O3 -fno-pic -fno-ipa-icf -fdump-tree-optimized" } */
 
 struct S { long a, b; } s = { 5, 6 };
 char t[16] = { 7 };