mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/build: don't add -maccumulate-outgoing-args w/o compiler support
@ 2017-05-04  6:23 Nick Desaulniers
  2017-05-04 19:14 ` Josh Poimboeuf
  0 siblings, 1 reply; 11+ messages in thread
From: Nick Desaulniers @ 2017-05-04  6:23 UTC (permalink / raw)
  Cc: nick.desaulniers, jpoimboe, tglx, mingo, hpa, x86, linux-kernel

Otherwise other compilers, like Clang, are prevented from compiling the
kernel. This flag was introduced in
3f135e57a4f76d24ae8d8a490314331f0ced40c5.

Signed-off-by: Nick Desaulniers <nick.desaulniers@gmail.com>
---
 arch/x86/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 4430dd4..5a0ac84 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -179,7 +179,7 @@ ifdef CONFIG_JUMP_LABEL
 endif
 
 ifeq ($(ACCUMULATE_OUTGOING_ARGS), 1)
-	KBUILD_CFLAGS += -maccumulate-outgoing-args
+	KBUILD_CFLAGS += $(call cc-option,-maccumulate-outgoing-args,)
 endif
 
 # Stackpointer is addressed different for 32 bit and 64 bit x86
-- 
2.9.3

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

end of thread, other threads:[~2017-05-09  6:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-04  6:23 [PATCH] x86/build: don't add -maccumulate-outgoing-args w/o compiler support Nick Desaulniers
2017-05-04 19:14 ` Josh Poimboeuf
2017-05-05  3:17   ` [Patch v2] x86/build: require only gcc use -maccumulate-outgoing-args Nick Desaulniers
2017-05-05  6:23     ` Ingo Molnar
2017-05-05  6:38       ` hpa
2017-05-05 13:05         ` Josh Poimboeuf
2017-05-06  3:05           ` [Patch v3] x86/build: don't add -maccumulate-outgoing-args w/o compiler support Nick Desaulniers
2017-05-08  3:26             ` Josh Poimboeuf
2017-05-09  3:29               ` [Patch v4] " Nick Desaulniers
2017-05-09  3:41                 ` Josh Poimboeuf
2017-05-09  6:41                 ` [tip:x86/urgent] x86/build: Don't " tip-bot for Nick Desaulniers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®