re PR target/82641 (Unable to enable crc32 for a certain function with target attribu...
authorTamar Christina <tamar.christina@arm.com>
Tue, 6 Feb 2018 11:20:55 +0000 (11:20 +0000)
committerTamar Christina <tnfchris@gcc.gnu.org>
Tue, 6 Feb 2018 11:20:55 +0000 (11:20 +0000)
commitd10ac88059a7574f60e25af7b8f1022b25100fdd
treea1d490fb48256cb3cad22305a804c9a41a6b76de
parent40fdc3ec7a53f2bc60b656bf6289497135601630
re PR target/82641 (Unable to enable crc32 for a certain function with target attribute on ARM (aarch32))

2018-02-06  Tamar Christina  <tamar.christina@arm.com>

PR target/82641
* config/arm/arm.c (arm_print_asm_arch_directives): Record already
emitted arch directives.
* config/arm/arm-c.c (arm_cpu_builtins): Undefine __ARM_ARCH and
__ARM_FEATURE_COPROC before changing architectures.

gcc/testsuite
2018-02-06  Tamar Christina  <tamar.christina@arm.com>

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

From-SVN: r257410
gcc/ChangeLog
gcc/config/arm/arm-c.c
gcc/config/arm/arm.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/pragma_arch_switch_2.c [new file with mode: 0644]