re PR target/82641 (Unable to enable crc32 for a certain function with target attribu...
authorTamar Christina <tamar.christina@arm.com>
Fri, 17 Nov 2017 15:53:51 +0000 (15:53 +0000)
committerTamar Christina <tnfchris@gcc.gnu.org>
Fri, 17 Nov 2017 15:53:51 +0000 (15:53 +0000)
commitec132ef20c94c5bc72cdf27138cdff2e0c96800e
tree66a6b83e440593a102ad9a175aebacd673e801b5
parent6e72eb34e279a97e997b59494f8d47170efb03be
re PR target/82641 (Unable to enable crc32 for a certain function with target attribute on ARM (aarch32))

2017-11-17  Tamar Christina  <tamar.christina@arm.com>

PR target/82641
* config/arm/arm.c (arm_valid_target_attribute_rec):
Parse "arch=" and "+<ext>".
(arm_valid_target_attribute_tree): Re-init global options.
(arm_option_override): Make non-static.
(arm_options_perform_arch_sanity_checks): Make errors fatal.
* gcc/config/arm/arm-c.c (__ARM_FEATURE_CMSE): Support undef.
(__ARM_FEATURE_CRC32): Support undef.
* config/arm/arm_acle.h (__ARM_FEATURE_CRC32): Replace with pragma.
* doc/extend.texi (ARM Function Attributes): Add pragma and target.

gcc/testsuite/
2017-11-17  Tamar Christina  <tamar.christina@arm.com>

PR target/82641
* gcc.target/arm/pragma_arch_attribute.c: New.

From-SVN: r254878
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/config/arm/arm_acle.h
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/pragma_arch_attribute.c [new file with mode: 0644]