All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: LLVMLinux: Wrap -mno-80387 with cc-option
@ 2014-04-22  5:40 behanw
  2014-04-22  6:05 ` Ingo Molnar
  2014-04-22  9:45 ` [tip:x86/urgent] " tip-bot for Behan Webster
  0 siblings, 2 replies; 5+ messages in thread
From: behanw @ 2014-04-22  5:40 UTC (permalink / raw)
  To: tglx, mingo, hpa, x86
  Cc: linux-kernel, torvalds, dwmw2, pageexec, Behan Webster

From: Behan Webster <behanw@converseincode.com>

Wrap -mno-80387 gcc options with cc-option so they don't break clang.

Signed-off-by: Behan Webster <behanw@converseincode.com>
---
 arch/x86/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index d1b7c37..ce6ad7e 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -83,7 +83,9 @@ else
         KBUILD_CFLAGS += -m64
 
         # Don't autogenerate traditional x87, MMX or SSE instructions
-        KBUILD_CFLAGS += -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387
+        KBUILD_CFLAGS += -mno-mmx -mno-sse
+        KBUILD_CFLAGS += $(call cc-option,-mno-80387)
+        KBUILD_CFLAGS += $(call cc-option,-mno-fp-ret-in-387)
 
 	# Use -mpreferred-stack-boundary=3 if supported.
 	KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=3)
-- 
1.8.3.2


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

end of thread, other threads:[~2014-04-22  9:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-22  5:40 [PATCH] x86: LLVMLinux: Wrap -mno-80387 with cc-option behanw
2014-04-22  6:05 ` Ingo Molnar
2014-04-22  6:23   ` Behan Webster
2014-04-22  9:42     ` Ingo Molnar
2014-04-22  9:45 ` [tip:x86/urgent] " tip-bot for Behan Webster

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.