ivinline-1.C: Add target nonpic.
authorAlexander Ivchenko <alexander.ivchenko@intel.com>
Wed, 27 Mar 2013 10:00:43 +0000 (10:00 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Wed, 27 Mar 2013 10:00:43 +0000 (10:00 +0000)
        * g++.dg/ipa/ivinline-1.C: Add target nonpic.
        * g++.dg/ipa/ivinline-2.C: Likewise.
        * g++.dg/ipa/ivinline-3.C: Likewise.
        * g++.dg/ipa/ivinline-4.C: Likewise.
        * g++.dg/ipa/ivinline-5.C: Likewise.
        * g++.dg/ipa/ivinline-7.C: Likewise.
        * g++.dg/ipa/ivinline-8.C: Likewise.
        * g++.dg/ipa/ivinline-9.C: Likewise.
        * g++.dg/cpp0x/noexcept03.C: Likewise.
        * gcc.dg/const-1.c: Likewise.
        * gcc.dg/ipa/pure-const-1.c: Likewise.
        * gcc.dg/noreturn-8.c: Likewise.
        * gcc.target/i386/mmx-1.c: Likewise.
        * gcc.dg/tree-ssa/ipa-split-5.c: Likewise.
        * gcc.dg/tree-ssa/loadpre6.c: Likewise.
        * gcc.c-torture/execute/pr33992.x: New file.

From-SVN: r197157

17 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/noexcept03.C
gcc/testsuite/g++.dg/ipa/ivinline-1.C
gcc/testsuite/g++.dg/ipa/ivinline-2.C
gcc/testsuite/g++.dg/ipa/ivinline-3.C
gcc/testsuite/g++.dg/ipa/ivinline-4.C
gcc/testsuite/g++.dg/ipa/ivinline-5.C
gcc/testsuite/g++.dg/ipa/ivinline-7.C
gcc/testsuite/g++.dg/ipa/ivinline-8.C
gcc/testsuite/g++.dg/ipa/ivinline-9.C
gcc/testsuite/gcc.c-torture/execute/pr33992.x [new file with mode: 0644]
gcc/testsuite/gcc.dg/const-1.c
gcc/testsuite/gcc.dg/ipa/pure-const-1.c
gcc/testsuite/gcc.dg/noreturn-8.c
gcc/testsuite/gcc.dg/tree-ssa/ipa-split-5.c
gcc/testsuite/gcc.dg/tree-ssa/loadpre6.c
gcc/testsuite/gcc.target/i386/mmx-1.c

index 5b0544d41efe45df5b38f07728c813c45db3448c..5b26dad3f2a27397eaa5d857b772600fc52efcb9 100644 (file)
@@ -1,3 +1,22 @@
+2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
+
+       * g++.dg/ipa/ivinline-1.C: Add target nonpic.
+       * g++.dg/ipa/ivinline-2.C: Likewise.
+       * g++.dg/ipa/ivinline-3.C: Likewise.
+       * g++.dg/ipa/ivinline-4.C: Likewise.
+       * g++.dg/ipa/ivinline-5.C: Likewise.
+       * g++.dg/ipa/ivinline-7.C: Likewise.
+       * g++.dg/ipa/ivinline-8.C: Likewise.
+       * g++.dg/ipa/ivinline-9.C: Likewise.
+       * g++.dg/cpp0x/noexcept03.C: Likewise.
+       * gcc.dg/const-1.c: Likewise.
+       * gcc.dg/ipa/pure-const-1.c: Likewise.
+       * gcc.dg/noreturn-8.c: Likewise.
+       * gcc.target/i386/mmx-1.c: Likewise.
+       * gcc.dg/tree-ssa/ipa-split-5.c: Likewise.
+       * gcc.dg/tree-ssa/loadpre6.c: Likewise.
+       * gcc.c-torture/execute/pr33992.x: New file.
+
 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc.c-torture/execute/20011008-3.c: Cap VLEN with STACK_SIZE too.
index 54e04f3d02d8af61e68fa0ea94b2a0d23a2c97e6..41c442e90be6bc20454ee0ba86aed2826b332c9f 100644 (file)
@@ -1,6 +1,6 @@
 // Runtime test for noexcept-specification.
 // { dg-options "-std=c++0x -Wnoexcept" }
-// { dg-do run }
+// { dg-do run { target nonpic } }
 
 #include <exception>
 #include <cstdlib>
index fc63e60858d1ed64d949c1322accc7715197ff68..bc4dfea5cfbd4ea2c7b7a66b9e24066aa3460746 100644 (file)
@@ -1,6 +1,6 @@
 /* Verify that simple virtual calls are inlined even without early
    inlining.  */
-/* { dg-do run } */
+/* { dg-do run { target nonpic } } */
 /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp"  } */
 
 extern "C" void abort (void);
index f99330361f10b5dc42d090cf190c9abd6fe1f75b..001cff204204b18d0b4c4952f97c9a554f7c4f63 100644 (file)
@@ -1,6 +1,6 @@
 /* Verify that simple virtual calls using this pointer are inlined
    even without early inlining..  */
-/* { dg-do run } */
+/* { dg-do run { target nonpic } } */
 /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp"  } */
 
 extern "C" void abort (void);
index d9a47f860c8f090423074b3882a0aa40554de124..637a6aeccebed3729eb49bbf9ef06ea9141ad7e4 100644 (file)
@@ -1,6 +1,6 @@
 /* Verify that simple virtual calls on an object refrence are inlined
    even without early inlining.  */
-/* { dg-do run } */
+/* { dg-do run { target nonpic } } */
 /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp"  } */
 
 extern "C" void abort (void);
index 93cbe0c7dc17c075e61ee481ebae0f7557429f4c..f5b8f8e5dd49f4ec3f83e4d0565703148306065b 100644 (file)
@@ -1,7 +1,7 @@
 /* Verify that simple virtual calls are inlined even without early
    inlining, even when a typecast to an ancestor is involved along the
    way.  */
-/* { dg-do run } */
+/* { dg-do run { target nonpic } } */
 /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp"  } */
 
 extern "C" void abort (void);
index 91e8f4e3e1d3399addd28488fabae340e7e7ccfe..d78173d69e7be25bfe518e91b836170f34e2068a 100644 (file)
@@ -1,6 +1,6 @@
 /* Verify that virtual call inlining does not pick a wrong method when
    there is a user defined ancestor in an object.  */
-/* { dg-do run } */
+/* { dg-do run { target nonpic } } */
 /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp"  } */
 
 extern "C" void abort (void);
index 2630dffa9da9da678dc96f27548211c0f75baf67..9d725a5086a6e9e9b97ae3e5506758b7367938b7 100644 (file)
@@ -1,7 +1,7 @@
 /* Verify that simple virtual calls are inlined even without early
    inlining, even when a typecast to an ancestor is involved along the
    way and that ancestor is not the first one with virtual functions.  */
-/* { dg-do run } */
+/* { dg-do run { target nonpic } } */
 /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp"  } */
 
 extern "C" void abort (void);
index 3bdf4c15b2d26c04c32ea75d425ad5314097d5df..eebfc6af19b3e4f0afe6e6487f58f55fd66ec1a3 100644 (file)
@@ -1,6 +1,6 @@
 /* Verify that virtual calls are inlined (ithout early inlining) even
    when their caller is itself indirectly inlined.  */
-/* { dg-do run } */
+/* { dg-do run { target nonpic } } */
 /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp"  } */
 
 extern "C" void abort (void);
index 4ff07a9bbd8aac3bc4426c58d1d90c3017829d6e..586c3af30e171bb3506ff5e228faa67fffa84dc3 100644 (file)
@@ -2,7 +2,7 @@
    inlining, even when a typecast to an ancestor is involved along the
    way and that ancestor itself has an ancestor wich is not the
    primary base class.  */
-/* { dg-do run } */
+/* { dg-do run { target nonpic } } */
 /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp"  } */
 
 extern "C" void abort (void);
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr33992.x b/gcc/testsuite/gcc.c-torture/execute/pr33992.x
new file mode 100644 (file)
index 0000000..57e9840
--- /dev/null
@@ -0,0 +1,7 @@
+load_lib target-supports.exp
+
+if { [ check_effective_target_nonpic ] } {
+        return 0
+}
+
+return 1
index 2a532f8969e2b5e927045d04765e6b67effd4a99..a5b2b1677283bdddf0c44b167f3c5469e9e653f7 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target nonpic } } */
 /* { dg-options "-O2 -Wsuggest-attribute=const" } */
 
 extern int extern_const(int a) __attribute__ ((const));
index 51837ea9bad69c142c1f182077e2c0f3ce83ce18..f76dd87d4dde3fb3370fc72ef62f5dab1cb301dc 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target nonpic } } */
 /* { dg-options "-O3 -fdump-tree-local-pure-const1 -fdump-ipa-pure-const -fdump-tree-optimized -fno-early-inlining" } */
 void abort (void);
 int error_code;
index 50765da37ef45d3fac1f7078755822185186e475..1e75633c81209f18cd03607bfaf069ac6d4ba026 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run } */
+/* { dg-do run { target nonpic } } */
 /* { dg-options "-O2" } */
 void exit (int);
 void noreturn_autodetection_failed ();
index bf0714902a6e4bcf77974738702382b881c8c79f..abf1e07e2b84dd6636787d4d2791decbbf29960a 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target nonpic } } */
 /* { dg-options "-O3 -fdump-tree-fnsplit -fdump-tree-optimized" } */
 
 struct a {int a,b;};
index 6fc2a57a9f2b190247b2ff10e4aa99d394e5a19f..bcd72c5ef228ff4a909153ab90780524204d3d05 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */ 
+/* { dg-do compile { target nonpic } } */
 /* { dg-options "-O2 -fdump-tree-pre-stats -fdump-tree-fre1" } */
 #include <stddef.h>
 
index 0b31a531a41153f7efe42143991de2183a1cf2d2..e304acaa3ff6330099232793993977a739f4630f 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-do compile { target { nonpic } } } */
 /* { dg-options "-O2 -Werror-implicit-function-declaration -mmmx" } */
 
 /* Test that the intrinsics compile with optimization.  All of them are