Hi Tamar,
On 06/11/17 16:52, Tamar Christina wrote:
Hi All,
This patch adds the needed machinery to generate the appropriate
.arch and .arch_extension directives per function.
Borrowing from AArch64 this is only done when it's required (i.e. when
the directives to be set differ from the currently set one).
As part if this the .fpu directive has also been cleaned up to follow the
same logic.
Regtested on arm-none-eabi and no regressions.
Ok for trunk?
Ok.
Thanks,
Kyrill
gcc/
2017-11-06 Tamar Christina <tamar.christ...@arm.com>
PR target/82641
* config/arm/arm.c (INCLUDE_STRING): Define.
(arm_last_printed_arch_string, arm_last_printed_fpu_string): New.
(arm_declare_function_name): Conservatively emit .arch,
.arch_extensions
and .fpu.
gcc/testsuite/
2017-11-06 Tamar Christina <tamar.christ...@arm.com>
PR target/82641
* gcc.target/arm/pragma_arch_attribute_2.c: New.
* gcc.target/arm/pragma_arch_attribute_2.c: New.
* gcc.target/arm/pragma_arch_attribute_3.c: New.
* gcc.target/arm/pragma_fpu_attribute.c: New.
* gcc.target/arm/pragma_fpu_attribute_2.c: New.
--