aboutsummaryrefslogtreecommitdiffstats
path: root/MCONFIG.embedded
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-08-10 16:56:06 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-08-10 16:56:06 -0700
commitddd56ac530ff2ba81e350d3481e009f7dd8b0570 (patch)
tree8354c8338d2e9ca81646a5338a896a30459cd822 /MCONFIG.embedded
parentb88ef2b963207617b81ecf3475d418f7c25d0518 (diff)
downloadsyslinux-ddd56ac530ff2ba81e350d3481e009f7dd8b0570.tar.gz
syslinux-ddd56ac530ff2ba81e350d3481e009f7dd8b0570.tar.xz
syslinux-ddd56ac530ff2ba81e350d3481e009f7dd8b0570.zip
MCONFIG: update GCCOPT
Add -fwrapv, -freg-struct-return, -fno-exceptions, -fno-asynchronous-unwind-tables, -fno-strict-aliasing. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'MCONFIG.embedded')
-rw-r--r--MCONFIG.embedded5
1 files changed, 5 insertions, 0 deletions
diff --git a/MCONFIG.embedded b/MCONFIG.embedded
index b5c8f5da..bb718963 100644
--- a/MCONFIG.embedded
+++ b/MCONFIG.embedded
@@ -19,8 +19,13 @@ include $(topdir)/MCONFIG
GCCOPT := $(call gcc_ok,-m32,)
GCCOPT += $(call gcc_ok,-ffreestanding,)
GCCOPT += $(call gcc_ok,-fno-stack-protector,)
+GCCOPT += $(call gcc_ok,-fwrapv,)
+GCCOPT += $(call gcc_ok,-freg-struct-return,)
GCCOPT += -march=i386 -Os -fomit-frame-pointer -mregparm=3 -DREGPARM=3 \
-msoft-float
+GCCOPT += $(call gcc_ok,-fno-exceptions,)
+GCCOPT += $(call gcc_ok,-fno-asynchronous-unwind-tables,)
+GCCOPT += $(call gcc_ok,-fno-strict-aliasing,)
GCCOPT += $(call gcc_ok,-falign-functions=0,-malign-functions=0)
GCCOPT += $(call gcc_ok,-falign-jumps=0,-malign-jumps=0)
GCCOPT += $(call gcc_ok,-falign-labels=0,-malign-labels=0)