Bug 803856 - Port using -mstackrealign to comm-central r=Callek
authorIan Neal <iann_cvs@blueyonder.co.uk>
Sun, 28 Oct 2012 23:01:34 +0000
changeset 14130 3018691b7e501610406248fcbaa53c10e9bd711a
parent 14129 4e8a0167abe1f6096809ea08965cca3bf0a9672b
child 14131 f5d1ecdb30d6e6f0838dbfc2e617b31d4f899d19
push id804
push userbugzilla@standard8.plus.com
push dateMon, 07 Jan 2013 21:31:35 +0000
treeherdercomm-beta@9fdc5c67cdb1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersCallek
bugs803856
Bug 803856 - Port using -mstackrealign to comm-central r=Callek
configure.in
--- a/configure.in
+++ b/configure.in
@@ -1973,16 +1973,24 @@ ia64*-hpux*)
     i*86-*)
         if test "$HAVE_64BIT_OS"; then
             AC_MSG_ERROR([You are targeting i386 but using the 64-bit compiler.])
         fi
 
         if test $_MSC_VER -ge 1400; then
             LDFLAGS="$LDFLAGS -SAFESEH"
         fi
+
+        if test -n "$GNU_CC"; then
+            CFLAGS="$CFLAGS -mstackrealign -fno-keep-inline-dllexport"
+            CXXFLAGS="$CXXFLAGS -mstackrealign -fno-keep-inline-dllexport"
+        else
+            AC_DEFINE(HAVE_STDCALL)
+        fi
+
     	AC_DEFINE(_X86_)
 	;;
     alpha-*)
     	AC_DEFINE(_ALPHA_)
 	;;
     mips-*)
     	AC_DEFINE(_MIPS_)
 	;;