]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/x86/Makefile
x86-64, gcc: Use -mpreferred-stack-boundary=3 if supported
[karo-tx-linux.git] / arch / x86 / Makefile
index 1f25214345548584447a607676e61093301df8c8..b0c5276861ec8cc3b5713b6f83335746f812edde 100644 (file)
@@ -49,6 +49,9 @@ else
         KBUILD_AFLAGS += -m64
         KBUILD_CFLAGS += -m64
 
+       # Use -mpreferred-stack-boundary=3 if supported.
+       KBUILD_CFLAGS += $(call cc-option,-mno-sse -mpreferred-stack-boundary=3)
+
         # FIXME - should be integrated in Makefile.cpu (Makefile_32.cpu)
         cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8)
         cflags-$(CONFIG_MPSC) += $(call cc-option,-march=nocona)