scons: Pass -fno-strict-aliasing to gcc.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 11 Dec 2009 12:08:32 +0000 (12:08 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 11 Dec 2009 12:28:53 +0000 (12:28 +0000)
Strict aliasing tule violations were fixed on master, but
they're still causing problem in this branch, so disable this assumptions.

Do not apply this fix to master (revert when you merge).

scons/gallium.py

index ca1ca5153e751d0635adffa349ffd2462e3895e6..0e5de0d0f8e45179e36c4808507f3d64f7ddc00b 100644 (file)
@@ -370,6 +370,7 @@ def generate(env):
             '-Wno-long-long',
             '-ffast-math',
             '-fmessage-length=0', # be nice to Eclipse
+            '-fno-strict-aliasing', # we violate strict pointer aliasing rules
         ]
         cflags += [
             '-Werror=declaration-after-statement',