[Patch AArch64] Add __ARM_FEATURE_ATOMICS
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Tue, 30 Apr 2019 11:22:11 +0000 (11:22 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Tue, 30 Apr 2019 11:22:11 +0000 (11:22 +0000)
commitabb3c64e76e7d72c0465cbec7cf6e0a47b64e82b
tree1a6ba8d5fcc1fc66b75818a112913773c0f8858d
parent95767c6597e32256b3850c9bed4fd8ce1f0da089
[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.

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

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