summaryrefslogtreecommitdiff
path: root/scons/gallium.py
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-09-09 21:45:08 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-09-09 21:48:50 +0100
commitb0b131b023ed3d31fa77cfcd5f9b82f2997c78c7 (patch)
tree377cb6f33f3c2f50d1e3d8ef0fbab8977e625157 /scons/gallium.py
parentabc160b664c3fbd4c18a2cd3402c9a84f5f2d00f (diff)
scons: Pass -mstackrealign option to gcc.
It is impossible to have gcc generate SSE code without it, as thirdparty applications often call us with an unaligned stack pointer.
Diffstat (limited to 'scons/gallium.py')
-rw-r--r--scons/gallium.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index bf6172b4d7..47b07744be 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -340,6 +340,7 @@ def generate(env):
'-m32',
#'-march=pentium4',
'-mmmx', '-msse', '-msse2', # enable SIMD intrinsics
+ '-mstackrealign', # ensure stack is aligned -- do not enabled -msse without it!
#'-mfpmath=sse',
]
if env['machine'] == 'x86_64':