projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abc160b
)
scons: Pass -mstackrealign option to gcc.
author
José Fonseca
<jfonseca@vmware.com>
Wed, 9 Sep 2009 20:45:08 +0000
(21:45 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 9 Sep 2009 20:48:50 +0000
(21:48 +0100)
It is impossible to have gcc generate SSE code without it, as thirdparty
applications often call us with an unaligned stack pointer.
scons/gallium.py
patch
|
blob
|
history
diff --git
a/scons/gallium.py
b/scons/gallium.py
index bf6172b4d777d226a0c2f10385b79ea0fc531914..47b07744be9d80ed500c791d38f50f0e5f3c0ef4 100644
(file)
--- 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':