This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][GCC][ARM] Silence ARM_ARCH redefinition warning and keep better track of architecturs already emitted.



On 05/02/18 11:52, Tamar Christina wrote:
Hi All,

This patch silences the warnings that were emitted when certain ACLE macros were being redefined
when using the new target pragma or attribute to change architecture level.

It also keeps better track of which arch directives have already been emitted. This allows special
cases that existed before to keep working as they did before.

Regtested on arm-none-eabi and no regressions.
Bootstrapped and regtested on arm-none-Linux-gnueabihf and no issues.

Ok for trunk and backport to the GCC-8 branch?


Thanks Tamar, this is in line with what we do for aarch64 as well.
Ok for trunk.
There is no GCC 8 branch, and this is GCC 8 functionality so this shouldn't
need to be backported anywhere.

Kyrill

Thanks,
Tamar


gcc/
2018-02-05  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-05  Tamar Christina  <tamar.christina@arm.com>

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

--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]