Mesa (master): swr: build swr with -fno-strict-aliasing

Tim Rowley torowley at kemper.freedesktop.org
Tue Aug 2 19:38:13 UTC 2016


Module: Mesa
Branch: master
Commit: 11072de3681dcc8b3ebd01d7f1f1f9305f5e0eed
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=11072de3681dcc8b3ebd01d7f1f1f9305f5e0eed

Author: Tim Rowley <timothy.o.rowley at intel.com>
Date:   Tue Aug  2 13:18:08 2016 -0500

swr: build swr with -fno-strict-aliasing

swr rasterizer contains numerous data transfers between vectors
and ordinary C types.  Fixing for strict aliasing will take time.

Reviewed-by: Matt Turner <mattst88 at gmail.com>

---

 src/gallium/drivers/swr/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/swr/Makefile.am b/src/gallium/drivers/swr/Makefile.am
index 3459af3..33664d6 100644
--- a/src/gallium/drivers/swr/Makefile.am
+++ b/src/gallium/drivers/swr/Makefile.am
@@ -29,6 +29,7 @@ noinst_LTLIBRARIES = libmesaswr.la
 libmesaswr_la_SOURCES = $(LOADER_SOURCES)
 
 COMMON_CXXFLAGS = \
+	-fno-strict-aliasing \
 	$(GALLIUM_DRIVER_CFLAGS) \
 	$(LLVM_CXXFLAGS) \
 	$(SWR_CXX11_CXXFLAGS) \




More information about the mesa-commit mailing list