From: Jan Beulich Date: Fri, 29 Nov 2019 16:10:00 +0000 (+0100) Subject: x86: fix clang .macro retention check X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~1121 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d0d72e60f5fe2debf862cb2c3455777c240c5dcc;p=xen.git x86: fix clang .macro retention check There were two problems here: The first closing parentheses got parsed by make to end the $(call invocation, and the escaping of the quotes wasn't right either, as there's nowhere they would get un-escaped. Furthermore there appears to be a puzzling problem with \n getting expanded to an actual newline too early in some environments. Convert these to semicolons at the same time. Signed-off-by: Jan Beulich Tested-by: Roger Pau Monné [On FreeBSD and Debian 9.5] Reviewed-by: Roger Pau Monné Acked-by: Andrew Cooper --- diff --git a/Config.mk b/Config.mk index 0fa4591379..4735a1bfd0 100644 --- a/Config.mk +++ b/Config.mk @@ -6,6 +6,8 @@ endif # Convenient variables comma := , +open := ( +close := ) squote := ' #' Balancing squote, to help syntax highlighting empty := diff --git a/xen/arch/x86/Rules.mk b/xen/arch/x86/Rules.mk index 659ac3d83e..0794afa3c3 100644 --- a/xen/arch/x86/Rules.mk +++ b/xen/arch/x86/Rules.mk @@ -81,6 +81,6 @@ $(call as-option-add,CFLAGS,CC,".include \"asm/indirect_thunk_asm.h\"",,\ # Check whether clang keeps .macro-s between asm()-s: # https://bugs.llvm.org/show_bug.cgi?id=36110 $(call as-option-add,CFLAGS,CC,\ - ".macro FOO\n.endm\"); asm volatile (\".macro FOO\n.endm",\ + ".macro FOO;.endm"$$(close); asm volatile $$(open)".macro FOO;.endm",\ -no-integrated-as) endif