ARM-software / acle

Arm C Language Extensions (ACLE)
Other
85 stars 54 forks source link

[proposal] Freeze __ARM_ARCH macro up until Armv8.x-A #304

Open vhscampos opened 6 months ago

vhscampos commented 6 months ago

LLVM and gcc have an older definition of this macro, thus they don't currently follow the ACLE.

Starting from Armv9-a, numerical comparisons break. For instance, 805 (Armv8-5.a) is greater than 9 (Armv9-a).

Action: freeze the macro definition up until Armv8.x-A. Thus it must not be used from Armv9-A onwards. The ACLE spec must be updated to inform so.

However, the ACLE specification must inform users not to use or rely on this macro to control architecture features usage. They must use specific feature macros instead.