Fix checking -mibt and -mshstk options for control flow protection
authorIgor Tsimbalist <igor.v.tsimbalist@intel.com>
Tue, 6 Feb 2018 15:25:31 +0000 (16:25 +0100)
committerIgor Tsimbalist <itsimbal@gcc.gnu.org>
Tue, 6 Feb 2018 15:25:31 +0000 (16:25 +0100)
commit3ca8e91f0e4452f618dbdc82090ecf47d1bd984c
tree76c690f27dae12fbd32060ace81fb460a139592b
parentc88893a0da8fd01f20b4e254f706f054a72fc435
Fix checking -mibt and -mshstk options for control flow protection

PR target/84145
* config/i386/i386.c: Reimplement the check of possible options
-mibt/-mshstk conbination. Change error messages.
* doc/invoke.texi: Fix a typo: remove extra '='.
* c-c++-common/fcf-protection-1.c: Change a compared message.
* c-c++-common/fcf-protection-2.c: Likewise.
* c-c++-common/fcf-protection-3.c: Likewise.
* c-c++-common/fcf-protection-5.c: Likewise.
* c-c++-common/fcf-protection-6.c: New test.
* c-c++-common/fcf-protection-7.c: Likewise.

From-SVN: r257414
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/fcf-protection-1.c
gcc/testsuite/c-c++-common/fcf-protection-2.c
gcc/testsuite/c-c++-common/fcf-protection-3.c
gcc/testsuite/c-c++-common/fcf-protection-5.c
gcc/testsuite/c-c++-common/fcf-protection-6.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/fcf-protection-7.c [new file with mode: 0644]