This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][GCC][ARM] Silence ARM_ARCH redefinition warning and keep better track of architecturs already emitted.
- From: Kyrill Tkachov <kyrylo dot tkachov at foss dot arm dot com>
- To: Tamar Christina <Tamar dot Christina at arm dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: nd <nd at arm dot com>, Ramana Radhakrishnan <Ramana dot Radhakrishnan at arm dot com>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>, "nickc at redhat dot com" <nickc at redhat dot com>
- Date: Tue, 06 Feb 2018 10:37:52 +0000
- Subject: Re: [PATCH][GCC][ARM] Silence ARM_ARCH redefinition warning and keep better track of architecturs already emitted.
- Authentication-results: sourceware.org; auth=none
- References: <20180205115211.GA18708@arm.com>
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.
--