[AArch64][PR target/84882] Add mno-strict-align
authorSudakshina Das <sudi.das@arm.com>
Wed, 23 May 2018 11:33:09 +0000 (11:33 +0000)
committerSudakshina Das <sudi@gcc.gnu.org>
Wed, 23 May 2018 11:33:09 +0000 (11:33 +0000)
commit675d044c852044111c656f86c273a0c5f11ad3d5
tree62a5bf326298914ec54a2ae48a228b5c9394d1d8
parentcb3c90cc4253cc236a4d5669a893562b202570e5
[AArch64][PR target/84882] Add mno-strict-align

*** gcc/ChangeLog ***

2018-05-23  Sudakshina Das  <sudi.das@arm.com>

PR target/84882
* common/config/aarch64/aarch64-common.c (aarch64_handle_option):
Check val before adding MASK_STRICT_ALIGN to opts->x_target_flags.
* config/aarch64/aarch64.opt (mstrict-align): Remove RejectNegative.
* config/aarch64/aarch64.c (aarch64_attributes): Mark allow_neg
as true for strict-align.
(aarch64_can_inline_p): Perform checks even when callee has no
attributes to check for strict alignment.
* doc/extend.texi (AArch64 Function Attributes): Document
no-strict-align.
* doc/invoke.texi: (AArch64 Options): Likewise.

*** gcc/testsuite/ChangeLog ***

2018-05-23  Sudakshina Das  <sudi.das@arm.com>

PR target/84882
* gcc.target/aarch64/pr84882.c: New test.
* gcc.target/aarch64/target_attr_18.c: Likewise.

From-SVN: r260604
gcc/ChangeLog
gcc/common/config/aarch64/aarch64-common.c
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.opt
gcc/doc/extend.texi
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/pr84882.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/target_attr_18.c [new file with mode: 0644]