i386: Replace -fcf-protection with -fcf-protection=branch
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 21 Feb 2019 18:59:00 +0000 (18:59 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 21 Feb 2019 18:59:00 +0000 (10:59 -0800)
Since -mindirect-branch is incompatible with -fcf-protection=return and
-fcf-protection, replace -fcf-protection with -fcf-protection=branch.

PR target/87412
* gcc.target/i386/indirect-thunk-attr-14.c: Replace
-fcf-protection with -fcf-protection=branch.
* gcc.target/i386/indirect-thunk-attr-15.c: Likewise.
* gcc.target/i386/indirect-thunk-attr-16.c: Likewise.
* gcc.target/i386/indirect-thunk-extern-8.c: Likewise.
* gcc.target/i386/indirect-thunk-extern-9.c: Likewise.
* gcc.target/i386/indirect-thunk-extern-10.c: Likewise.

From-SVN: r269074

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/indirect-thunk-attr-14.c
gcc/testsuite/gcc.target/i386/indirect-thunk-attr-15.c
gcc/testsuite/gcc.target/i386/indirect-thunk-attr-16.c
gcc/testsuite/gcc.target/i386/indirect-thunk-extern-10.c
gcc/testsuite/gcc.target/i386/indirect-thunk-extern-8.c
gcc/testsuite/gcc.target/i386/indirect-thunk-extern-9.c

index 8d51a72517ad3d7e3fe82256396d69c28c4bb2a6..0093df61df122e1cae78fbd4f3a29ec0167518de 100644 (file)
@@ -1,3 +1,14 @@
+2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/87412
+       * gcc.target/i386/indirect-thunk-attr-14.c: Replace
+       -fcf-protection with -fcf-protection=branch.
+       * gcc.target/i386/indirect-thunk-attr-15.c: Likewise.
+       * gcc.target/i386/indirect-thunk-attr-16.c: Likewise.
+       * gcc.target/i386/indirect-thunk-extern-8.c: Likewise.
+       * gcc.target/i386/indirect-thunk-extern-9.c: Likewise.
+       * gcc.target/i386/indirect-thunk-extern-10.c: Likewise.
+
 2019-02-21  Wilco Dijkstra  <wdijkstr@arm.com>
 
        * gcc.target/arm/pr88850-2.c: Block -mfloat-abi override.
index eb25139da6d1ffcf01963dbda658a3a091241b41..8516be5c8a627add8222c99f46deb32367987f55 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target *-*-linux* } } */
-/* { dg-options "-O2 -mno-indirect-branch-register -mfunction-return=keep -fno-pic -fplt -mindirect-branch=keep -fcf-protection" } */
+/* { dg-options "-O2 -mno-indirect-branch-register -mfunction-return=keep -fno-pic -fplt -mindirect-branch=keep -fcf-protection=branch" } */
 
 extern void (*bar) (void);
 
index 1ad459e3b19b308cb7138a6783db1bd5ebfe170c..28eafbafe395adb72f7ca9af2a45f84919fb2a72 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target *-*-linux* } } */
-/* { dg-options "-O2 -mindirect-branch-register -mfunction-return=keep -fno-pic -fplt -mindirect-branch=keep -fcf-protection" } */
+/* { dg-options "-O2 -mindirect-branch-register -mfunction-return=keep -fno-pic -fplt -mindirect-branch=keep -fcf-protection=branch" } */
 
 extern void (*bar) (void);
 
index 86fe035bc9a93e5e57a5f63af6cb390ab71dcee1..737d85d48e8222c748befe819ce77e5ac20665d6 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target *-*-linux* } } */
-/* { dg-options "-O2 -mindirect-branch-register -mfunction-return=keep -fno-pic -fplt -mindirect-branch=keep -fcf-protection" } */
+/* { dg-options "-O2 -mindirect-branch-register -mfunction-return=keep -fno-pic -fplt -mindirect-branch=keep -fcf-protection=branch" } */
 
 extern void (*bar) (void) __attribute__((nocf_check));
 
index 95731d6f36575cb0e4c0292bd3b96662bc5ac383..539781c492aa5ac2ab0ad364c09c55727e7f4857 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target *-*-linux* } } */
-/* { dg-options "-O2 -mindirect-branch-register -mfunction-return=keep -fno-pic -fplt -mindirect-branch=thunk-extern -fcf-protection" } */
+/* { dg-options "-O2 -mindirect-branch-register -mfunction-return=keep -fno-pic -fplt -mindirect-branch=thunk-extern -fcf-protection=branch" } */
 
 extern void (*bar) (void) __attribute__((nocf_check));
 
index 0c61516732a3ad90994cefc4daaba2e1bb696df8..2cef59de5aba83e2cc9071f79aa3595c02e5a5a6 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target *-*-linux* } } */
-/* { dg-options "-O2 -mno-indirect-branch-register -mfunction-return=keep -fno-pic -fplt -mindirect-branch=thunk-extern -fcf-protection" } */
+/* { dg-options "-O2 -mno-indirect-branch-register -mfunction-return=keep -fno-pic -fplt -mindirect-branch=thunk-extern -fcf-protection=branch" } */
 
 extern void (*bar) (void);
 
index 731d4c4e6e9b7beb6cb8894c36aabc76dad7d2dd..a579cdde6bafa39fbeee2e5d3478dec1fcd22bd3 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target *-*-linux* } } */
-/* { dg-options "-O2 -mindirect-branch-register -mfunction-return=keep -fno-pic -fplt -mindirect-branch=thunk-extern -fcf-protection" } */
+/* { dg-options "-O2 -mindirect-branch-register -mfunction-return=keep -fno-pic -fplt -mindirect-branch=thunk-extern -fcf-protection=branch" } */
 
 extern void (*bar) (void);