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)
commitf43044a3d7856c6d8b88c706d1e078268e12f7af
treeac4d8e0264dfacf90c41e1540351ed2f1aaf7896
parent7b45322a5e5030d386a3ad3f747f5e390be4d3ff
i386: Replace -fcf-protection with -fcf-protection=branch

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