[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] x86: cover for clang's lack of support of -mpreferred-stack-boundary=<N>
commit 76d8dd2705a091078c871dff2024953749606dd0 Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Fri May 17 17:32:20 2019 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Fri May 17 17:32:20 2019 +0200 x86: cover for clang's lack of support of -mpreferred-stack-boundary=<N> While clang supposedly supports -mstack-alignment=<N> instead, I'm not using that alternative here due to being uncertain whether that's indeed an exact equivalent of the gcc option. Only make use of the option entirely conditional for now. Reported-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/x86/efi/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/efi/Makefile b/xen/arch/x86/efi/Makefile index f223ef058e..4bc0a196e9 100644 --- a/xen/arch/x86/efi/Makefile +++ b/xen/arch/x86/efi/Makefile @@ -7,7 +7,8 @@ boot.init.o: buildid.o EFIOBJ := boot.init.o compat.o runtime.o -$(EFIOBJ): CFLAGS-stack-boundary := -mpreferred-stack-boundary=4 +$(call cc-option-add,cflags-stack-boundary,CC,-mpreferred-stack-boundary=4) +$(EFIOBJ): CFLAGS-stack-boundary := $(cflags-stack-boundary) obj-y := stub.o obj-$(XEN_BUILD_EFI) := $(EFIOBJ) relocs-dummy.o -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |