Run new mcount tests only on Linux and not on PIC
authorAndi Kleen <ak@linux.intel.com>
Sat, 27 Sep 2014 18:50:59 +0000 (18:50 +0000)
committerAndi Kleen <ak@gcc.gnu.org>
Sat, 27 Sep 2014 18:50:59 +0000 (18:50 +0000)
gcc/testsuite/:

2014-09-27  Andi Kleen  <ak@linux.intel.com>

* gcc.target/i386/nop-mcount.c: Only run on Linux.
* gcc.target/i386/record-mcount.c: dito.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
From-SVN: r215659

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/nop-mcount.c
gcc/testsuite/gcc.target/i386/record-mcount.c

index e3396c5..3089328 100644 (file)
@@ -1,3 +1,8 @@
+2014-09-27  Andi Kleen  <ak@linux.intel.com>
+
+       * gcc.target/i386/nop-mcount.c: Only run on Linux.
+       * gcc.target/i386/record-mcount.c: dito.
+
 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
 
        PR ipa/62121
index 2592231..561792f 100644 (file)
@@ -1,5 +1,5 @@
 /* Test -mnop-mcount */
-/* { dg-do compile } */
+/* { dg-do compile { target { *-*-linux* } && { nonpic } } } */
 /* { dg-options "-pg -mfentry -mrecord-mcount -mnop-mcount" } */
 /* { dg-final { scan-assembler-not "__fentry__" } } */
 /* Origin: Andi Kleen */
index dae413e..72f1062 100644 (file)
@@ -1,5 +1,5 @@
 /* Test -mrecord-mcount */
-/* { dg-do compile } */
+/* { dg-do compile { target { *-*-linux* } && { nonpic } } } */
 /* { dg-options "-pg -mrecord-mcount" } */
 /* { dg-final { scan-assembler "mcount_loc" } } */
 /* Origin: Andi Kleen */