Use -fcf-protection=return in cet-intrin-4.c
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 7 Feb 2018 10:49:53 +0000 (10:49 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 7 Feb 2018 10:49:53 +0000 (02:49 -0800)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/cet-intrin-4.c

index 49e52ea8385e127603fdf2b2cc23ef1b39cd37f7..23b0d7418f669581a1f37e1c9422f1fff8fc2bde 100644 (file)
@@ -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
index 76ec160543f5894db16e954a92b58a307ccbf3d5..437a4cd690c9b05202c8f9e7508b8da77dac14ea 100644 (file)
@@ -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 } } } } */