Ensure the correct stack alignment on Win32.
authorZhang Xianyi <traits.zhang@gmail.com>
Wed, 17 Jul 2013 07:19:07 +0000 (15:19 +0800)
committerZhang Xianyi <traits.zhang@gmail.com>
Wed, 17 Jul 2013 07:19:07 +0000 (15:19 +0800)
Makefile.system

index 642d627..c0ef0b6 100644 (file)
@@ -184,8 +184,15 @@ ifeq ($(GCCMINORVERSIONGTEQ7), 1)
 CCOMMON_OPT    += -DMS_ABI
 endif
 endif
+endif
 
+# Ensure the correct stack alignment on Win32
+# http://permalink.gmane.org/gmane.comp.lib.openblas.general/97
+ifeq ($(ARCH), x86)
+CCOMMON_OPT += -mincoming-stack-boundary=2
+FCOMMON_OPT += -mincoming-stack-boundary=2
 endif
+
 endif
 
 ifeq ($(OSNAME), Interix)