Mesa (master): another gcc 4.2.x check for mstackrealign

Alan Hourihane alanh at kemper.freedesktop.org
Fri Jan 29 10:22:45 UTC 2010


Module: Mesa
Branch: master
Commit: 7683271e63e4527fc72f309472181c743922e7e9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7683271e63e4527fc72f309472181c743922e7e9

Author: Alan Hourihane <alanh at vmware.com>
Date:   Fri Jan 29 10:22:22 2010 +0000

another gcc 4.2.x check for mstackrealign

---

 scons/gallium.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/scons/gallium.py b/scons/gallium.py
index 0385620..ac68bd6 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -276,8 +276,11 @@ def generate(env):
                 # instead.
                 ccflags += [
                     '-mmmx', '-msse', '-msse2', # enable SIMD intrinsics
-                    '-mstackrealign', # ensure stack is aligned
                 ]
+        	if distutils.version.LooseVersion(ccversion) >= distutils.version.LooseVersion('4.2'):
+		    ccflags += [
+                    	'-mstackrealign', # ensure stack is aligned
+		    ]
         if env['machine'] == 'x86_64':
             ccflags += ['-m64']
         # See also:




More information about the mesa-commit mailing list