]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Patch AArch64] Add __ARM_FEATURE_ATOMICS
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Wed, 1 May 2019 15:27:40 +0000 (15:27 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Wed, 1 May 2019 15:27:40 +0000 (15:27 +0000)
commitc9bd45d6aadc32697ff16cfe0439be9f395969c0
tree2e2b8c04541d80134a7f9398485cead1484d682a
parent41e0e38b228f40ac45060f6ece139718568a2de6
[Patch AArch64] Add __ARM_FEATURE_ATOMICS

This keeps coming up repeatedly and the ACLE has finally added
__ARM_FEATURE_ATOMICS for the LSE feature in GCC. This is now part of
the latest ACLE release
(https://developer.arm.com/docs/101028/latest/5-feature-test-macros)

I know it's late for GCC-9 but this is a simple macro which need not
wait  for another year.

Ok for trunk and to backport to all release branches ?

Tested with a simple build and a smoke test.

Backport from mainline.
PR target/86538
* config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
__ARM_FEATURE_ATOMICS

From-SVN: r270770
gcc/ChangeLog
gcc/config/aarch64/aarch64-c.c