Don't pass x86-only options on non-x86 targets in c-c++-common/fcf-protection-[67...
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 6 Feb 2018 23:31:09 +0000 (23:31 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 6 Feb 2018 23:31:09 +0000 (23:31 +0000)
PR testsuite/84243
* c-c++-common/fcf-protection-6.c: Only pass -mshstk on x86
targets.
* c-c++-common/fcf-protection-7.c: Likewise for -mibt.

From-SVN: r257432

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/fcf-protection-6.c
gcc/testsuite/c-c++-common/fcf-protection-7.c

index 4134471fad9e5be7ca68b44e48bf928e9a94cd9b..a32ef3772940f65dd61986b385e5ae3b04754fb0 100644 (file)
@@ -1,3 +1,10 @@
+2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       PR testsuite/84243
+       * c-c++-common/fcf-protection-6.c: Only pass -mshstk on x86
+       targets.
+       * c-c++-common/fcf-protection-7.c: Likewise for -mibt.
+
 2018-02-06  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/84146
index 084983e4498eee8059c52f86e4722c19007958a1..532e76e69156a636c2b6b7ca06fc4af373dd3d4b 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-fcf-protection=branch -mshstk" } */
+/* { dg-options "-fcf-protection=branch" } */
+/* { dg-additional-options "-mshstk" { target { i?86-*-* x86_64-*-* } } } */
 /* { dg-error "'-fcf-protection=branch' requires Intel CET.*-mcet or -mibt option" "" { target { "i?86-*-* x86_64-*-*" } } 0 } */
 /* { dg-error "'-fcf-protection=branch' is not supported for this target" "" { target { ! "i?86-*-* x86_64-*-*" } } 0 } */
index 9baedf5991a3db278be114a9c07d87044f03866a..4c879692708ccd31bc50b6fd1094c90b1d0c8194 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-fcf-protection=return -mibt" } */
+/* { dg-options "-fcf-protection=return" } */
+/* { dg-additional-options "-mibt" { target { i?86-*-* x86_64-*-* } } } */
 /* { dg-error "'-fcf-protection=return' requires Intel CET.*-mcet or -mshstk option" "" { target { "i?86-*-* x86_64-*-*" } } 0 } */
 /* { dg-error "'-fcf-protection=return' is not supported for this target" "" { target { ! "i?86-*-* x86_64-*-*" } } 0 } */