diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2018-02-06 23:31:09 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2018-02-06 23:31:09 +0000 |
commit | 216c32f93f8be06686a210ab4ee084fcee3a07e6 (patch) | |
tree | 445d1c47a7a943f849602ec4ef9f11b09fca720b | |
parent | 486a2b66f0341c646b6df30e2bce6d7298305933 (diff) | |
download | gcc-216c32f93f8be06686a210ab4ee084fcee3a07e6.zip gcc-216c32f93f8be06686a210ab4ee084fcee3a07e6.tar.gz gcc-216c32f93f8be06686a210ab4ee084fcee3a07e6.tar.bz2 |
Don't pass x86-only options on non-x86 targets in c-c++-common/fcf-protection-[67].c (PR testsuite/84243)
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/fcf-protection-6.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/fcf-protection-7.c | 3 |
3 files changed, 11 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4134471..a32ef37 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/c-c++-common/fcf-protection-6.c b/gcc/testsuite/c-c++-common/fcf-protection-6.c index 084983e..532e76e 100644 --- a/gcc/testsuite/c-c++-common/fcf-protection-6.c +++ b/gcc/testsuite/c-c++-common/fcf-protection-6.c @@ -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 } */ diff --git a/gcc/testsuite/c-c++-common/fcf-protection-7.c b/gcc/testsuite/c-c++-common/fcf-protection-7.c index 9baedf5..4c879692 100644 --- a/gcc/testsuite/c-c++-common/fcf-protection-7.c +++ b/gcc/testsuite/c-c++-common/fcf-protection-7.c @@ -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 } */ |