[PATCH][AARCH64][PR target/84882] Add mno-strict-align
Sudakshina Das
sudi.das@arm.com
Thu May 10 10:31:00 GMT 2018
Ping!
On 27/03/18 13:58, Sudakshina Das wrote:
> Hi
>
> This patch adds the no variant to -mstrict-align and the corresponding
> function attribute. To enable the function attribute, I have modified
> aarch64_can_inline_p () to allow checks even when the callee function
> has no attribute. The need for this is shown by the new test
> target_attr_18.c.
>
> Testing: Bootstrapped, regtested and added new tests that are copies
> of earlier tests checking -mstrict-align with opposite scan directives.
>
> Is this ok for trunk?
>
> Sudi
>
>
> *** gcc/ChangeLog ***
>
> 2018-03-27 Sudakshina Das <sudi.das@arm.com>
>
> Â Â Â Â * 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-03-27 Sudakshina Das <sudi.das@arm.com>
>
> Â Â Â Â * gcc.target/aarch64/pr84882.c: New test.
> Â Â Â Â * gcc.target/aarch64/target_attr_18.c: Likewise.
More information about the Gcc-patches
mailing list