[Bug target/99312] __ARM_ARCH is not implemented correctly when compiled with -march=armv8.1-a
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 5 10:50:18 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99312
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to ktkachov from comment #2)
> We intend to deprecate that macro going forward as it's not a useful way for
> testing architecture features in aarch64. It made sense in the pre-Armv7-a
> days, but now the recommended way to test for features is the __ARM_FEATURE*
> macros.
Which is interesting because x86 is going in the opposite direction and having
ISA "levels".
>
> The scheme is also not very well-suited for things like the recent AArch64
> Armv8-R.
>
> Is there a particular use case that you have in mind?
A customer was asking for how to detect the ISA Level at compile time and
runtime.
More information about the Gcc-bugs
mailing list