]> xenbits.xensource.com Git - xen.git/commit
xen/arm64: force gcc 10+ to always inline generic atomics helpers
authorJan Beulich <jbeulich@suse.com>
Fri, 11 Sep 2020 10:45:33 +0000 (12:45 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 6 Nov 2020 01:48:15 +0000 (17:48 -0800)
commitf61c5d0ca729eda5e936b8aa2b45c4192e2f2b64
tree57b89909a84037080963f7fd0ccb4be2689673fb
parentfc8fab1bb4d3a16914d8e7f6e288e946e68d5a41
xen/arm64: force gcc 10+ to always inline generic atomics helpers

Recent versions of gcc (at least 10.x) will not inline generic atomics
helpers by default. Instead they will expect the software to either link
with libatomic.so or implement the helpers, which would result in

undefined reference to `__aarch64_ldadd4_acq_rel'

for us (not having any local implementation).

To keep the previous behavior, force gcc to always inline the generic
atomics helpers.

Long term we probably want to avoid relying on gcc atomics helpers as
this doesn't allow us to switch between LSE and LL/SC atomics.

Suggested-by: Julien Grall <jgrall@amazon.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
(cherry picked from commit 5d45ecabe3c0b2097df623ab7b471f8915cfdde6)
xen/arch/arm/arch.mk