aboutsummaryrefslogtreecommitdiffstats
path: root/com32/MCONFIG
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 /com32/MCONFIG
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 'com32/MCONFIG')
-rw-r--r--com32/MCONFIG5
1 files changed, 5 insertions, 0 deletions
diff --git a/com32/MCONFIG b/com32/MCONFIG
index 0fa78028..3af015e1 100644
--- a/com32/MCONFIG
+++ b/com32/MCONFIG
@@ -20,8 +20,13 @@ include $(topdir)/MCONFIG
GCCOPT := $(call gcc_ok,-std=gnu99,)
GCCOPT += $(call gcc_ok,-m32,)
GCCOPT += $(call gcc_ok,-fno-stack-protector,)
+GCCOPT += $(call gcc_ok,-fwrapv,)
+GCCOPT += $(call gcc_ok,-freg-struct-return,)
GCCOPT += -mregparm=3 -DREGPARM=3 -march=i386 -Os
GCCOPT += $(call gcc_ok,-fPIE,-fPIC)
+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)