Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vhscampos opened this issue Mar 4, 2024 · 0 comments
Open

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

vhscampos opened this issue Mar 4, 2024 · 0 comments
Labels

Comments

@vhscampos
Copy link
Member

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.

@vhscampos vhscampos changed the title Freeze __ARM_ARCH macro up until Armv8.x-A [proposal] Freeze __ARM_ARCH macro up until Armv8.x-A Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant