aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2018-02-07 10:49:53 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2018-02-07 02:49:53 -0800
commit81b58bfd0b0fba2b00a04012ff60135f12036045 (patch)
treebc896804b26a795cb2db1663b8406460799c5bff
parent6ad05bcc3e3c5f80fac077423dd222cf850f9096 (diff)
downloadgcc-81b58bfd0b0fba2b00a04012ff60135f12036045.zip
gcc-81b58bfd0b0fba2b00a04012ff60135f12036045.tar.gz
gcc-81b58bfd0b0fba2b00a04012ff60135f12036045.tar.bz2
Use -fcf-protection=return in cet-intrin-4.c
Since -fcf-protection requires both -mshstk and -mibt, use -fcf-protection=return with -mshstk in cet-intrin-4.c. PR target/84243 * gcc.target/i386/cet-intrin-4.c (dg-options): Use -fcf-protection=return. From-SVN: r257445
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.target/i386/cet-intrin-4.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 49e52ea..23b0d74 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2018-02-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/84243
+ * gcc.target/i386/cet-intrin-4.c (dg-options): Use
+ -fcf-protection=return.
+
2018-02-07 Tom de Vries <tom@codesourcery.com>
PR libgomp/84217
diff --git a/gcc/testsuite/gcc.target/i386/cet-intrin-4.c b/gcc/testsuite/gcc.target/i386/cet-intrin-4.c
index 76ec160..437a4cd 100644
--- a/gcc/testsuite/gcc.target/i386/cet-intrin-4.c
+++ b/gcc/testsuite/gcc.target/i386/cet-intrin-4.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O -fcf-protection -mshstk" } */
+/* { dg-options "-O -fcf-protection=return -mshstk" } */
/* { dg-final { scan-assembler "rdsspd|incsspd\[ \t]+(%|)eax" { target ia32 } } } */
/* { dg-final { scan-assembler "rdssp\[dq]\[ \t]+(%|)\[re]ax" { target { ! ia32 } } } } */
/* { dg-final { scan-assembler "incssp\[dq]\[ \t]+(%|)\[re]di" { target { ! ia32 } } } } */