MCONFIG: update gcc options for embedded and com32
authorH. Peter Anvin <hpa@zytor.com>
Mon, 29 Mar 2010 20:50:45 +0000 (13:50 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 29 Mar 2010 20:50:45 +0000 (13:50 -0700)
Update the gcc options used for embedded and for com32 and make sure
they match.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
MCONFIG.embedded
com32/MCONFIG

index 37abe91..4b42e0d 100644 (file)
 
 include $(topdir)/MCONFIG
 
-GCCOPT    := $(call gcc_ok,-m32,) \
-            $(call gcc_ok,-ffreestanding,) \
-            $(call gcc_ok,-fno-stack-protector,) \
-            $(call gcc_ok,-falign-functions=0,-malign-functions=0) \
-            $(call gcc_ok,-falign-jumps=0,-malign-jumps=0) \
-            $(call gcc_ok,-falign-loops=0,-malign-loops=0) \
+GCCOPT    := $(call gcc_ok,-m32,)                                      \
+            $(call gcc_ok,-ffreestanding,)                             \
+            $(call gcc_ok,-fno-stack-protector,)                       \
+            $(call gcc_ok,-falign-functions=0,-malign-functions=0)     \
+            $(call gcc_ok,-falign-jumps=0,-malign-jumps=0)             \
+            $(call gcc_ok,-falign-loops=0,-malign-loops=0)             \
+            $(call gcc_ok,-mpreferred-stack-boundary=2,)               \
+            $(call gcc_ok,-mincoming-stack-boundary=2,)                \
             -march=i386 -Os -fomit-frame-pointer -mregparm=3 -DREGPARM=3 \
             -msoft-float
 
index 578e283..0e152de 100644 (file)
 
 include $(topdir)/MCONFIG
 
-GCCOPT := $(call gcc_ok,-std=gnu99,) \
-         $(call gcc_ok,-m32,) \
-         $(call gcc_ok,-fno-stack-protector,) \
-         -mregparm=3 -DREGPARM=3 -march=i386 -Os
+GCCOPT   := $(call gcc_ok,-std=gnu99,)                                 \
+            $(call gcc_ok,-m32,)                                       \
+            $(call gcc_ok,-fno-stack-protector,)                       \
+            $(call gcc_ok,-falign-functions=0,-malign-functions=0)     \
+            $(call gcc_ok,-falign-jumps=0,-malign-jumps=0)             \
+            $(call gcc_ok,-falign-loops=0,-malign-loops=0)             \
+            $(call gcc_ok,-mpreferred-stack-boundary=2,)               \
+            $(call gcc_ok,-mincoming-stack-boundary=2,)                \
+            -march=i386 -Os -fomit-frame-pointer -mregparm=3 -DREGPARM=3
 
 com32 = $(topdir)/com32