From b0b131b023ed3d31fa77cfcd5f9b82f2997c78c7 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Wed, 9 Sep 2009 21:45:08 +0100 Subject: 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. --- scons/gallium.py | 1 + 1 file changed, 1 insertion(+) (limited to 'scons') 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': -- cgit v1.2.3