All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Arm64: fix build with gcc 10
@ 2020-09-08 12:53 Jan Beulich
  2020-09-08 13:03 ` Julien Grall
  2020-09-08 13:05 ` Bertrand Marquis
  0 siblings, 2 replies; 6+ messages in thread
From: Jan Beulich @ 2020-09-08 12:53 UTC (permalink / raw)
  To: xen-devel@lists.xenproject.org; +Cc: Julien Grall, Stefano Stabellini

With gcc10 inlining is (no longer?) the default for certain atomics.

Suggested-by: Julien Grall <jgrall@amazon.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/arch/arm/arch.mk
+++ b/xen/arch/arm/arch.mk
@@ -12,6 +12,7 @@ CFLAGS-$(CONFIG_ARM_32) += -mcpu=cortex-
 
 CFLAGS-$(CONFIG_ARM_64) += -mcpu=generic
 CFLAGS-$(CONFIG_ARM_64) += -mgeneral-regs-only # No fp registers etc
+$(call cc-option-add,CFLAGS-$(CONFIG_ARM_64),CC,-mno-outline-atomics)
 
 ifneq ($(filter command line environment,$(origin CONFIG_EARLY_PRINTK)),)
     $(error You must use 'make menuconfig' to enable/disable early printk now)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-09-08 14:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-08 12:53 [PATCH] Arm64: fix build with gcc 10 Jan Beulich
2020-09-08 13:03 ` Julien Grall
2020-09-08 14:12   ` Jan Beulich
2020-09-08 13:05 ` Bertrand Marquis
2020-09-08 14:08   ` Jan Beulich
2020-09-08 14:17     ` Bertrand Marquis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.