[syslinux:master] MCONFIG: update gcc options for embedded and com32

syslinux-bot for H. Peter Anvin hpa at zytor.com
Mon Mar 29 17:30:11 PDT 2010


Commit-ID:  b684e0fe03ea0ad949f087b0a4d58fa3a8b29116
Gitweb:     http://syslinux.zytor.com/commit/b684e0fe03ea0ad949f087b0a4d58fa3a8b29116
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 29 Mar 2010 13:50:45 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 29 Mar 2010 13:50:45 -0700

MCONFIG: update gcc options for embedded and com32

Update the gcc options used for embedded and for com32 and make sure
they match.

Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>


---
 MCONFIG.embedded |   14 ++++++++------
 com32/MCONFIG    |   13 +++++++++----
 2 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/MCONFIG.embedded b/MCONFIG.embedded
index 37abe91..4b42e0d 100644
--- a/MCONFIG.embedded
+++ b/MCONFIG.embedded
@@ -16,12 +16,14 @@
 
 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
 
diff --git a/com32/MCONFIG b/com32/MCONFIG
index 578e283..0e152de 100644
--- a/com32/MCONFIG
+++ b/com32/MCONFIG
@@ -17,10 +17,15 @@
 
 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
 



More information about the Syslinux-commits mailing list