[AArch64, 6/6] Enable BTI: Add configure option.
commitc7ff4f0fe6b9357393c7e44338c4783cf0c19759
authorSudakshina Das <sudi.das@arm.com>
Wed, 9 Jan 2019 14:32:06 +0000 (9 14:32 +0000)
committerSudakshina Das <sudi@gcc.gnu.org>
Wed, 9 Jan 2019 14:32:06 +0000 (9 14:32 +0000)
treedb02073be5558e36dbb273606c294c9de708594f
parentb5f794b47bc09930e3a05b64de0890d315631436
[AArch64, 6/6] Enable BTI: Add configure option.

This patch is part of a series that enables ARMv8.5-A in GCC and
adds Branch Target Identification Mechanism.

This patch is adding a new configure option for enabling BTI and
Return Address Signing by default.

*** gcc/ChangeLog ***

2018-01-09  Sudakshina Das  <sudi.das@arm.com>

* config/aarch64/aarch64.c (aarch64_override_options): Add case to
check configure option to set BTI and Return Address Signing.
* configure.ac: Add --enable-standard-branch-protection and
--disable-standard-branch-protection.
* configure: Regenerated.
* doc/install.texi: Document the same.

*** gcc/testsuite/ChangeLog ***

2018-01-09  Sudakshina Das  <sudi.das@arm.com>

* gcc.target/aarch64/bti-1.c: Update test to not add command line
option when configure with bti.
* gcc.target/aarch64/bti-2.c: Likewise.
* lib/target-supports.exp
(check_effective_target_default_branch_protection):
Add configure check for --enable-standard-branch-protection.

From-SVN: r267770
gcc/ChangeLog
gcc/config/aarch64/aarch64.c
gcc/configure
gcc/configure.ac
gcc/doc/install.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/bti-1.c
gcc/testsuite/gcc.target/aarch64/bti-2.c
gcc/testsuite/lib/target-supports.exp