Mesa (mesa_7_7_branch): scons: Pass -fno-strict-aliasing to gcc.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Dec 11 12:33:48 UTC 2009


Module: Mesa
Branch: mesa_7_7_branch
Commit: a2937a2f4ecf22a5a4242cd0a350f20228f50232
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a2937a2f4ecf22a5a4242cd0a350f20228f50232

Author: José Fonseca <jfonseca at vmware.com>
Date:   Fri Dec 11 12:08:32 2009 +0000

scons: Pass -fno-strict-aliasing to gcc.

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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/scons/gallium.py b/scons/gallium.py
index ca1ca51..0e5de0d 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -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',




More information about the mesa-commit mailing list