[PATCH libXau] config: add -fno-strict-aliasing now that it is out of $CWARNFLAGS

Gaetan Nadon memsize at videotron.ca
Mon Feb 22 05:38:58 PST 2010


This patch will ensure the modules continues to suppress the
optimization, based on strict aliasing rules, after the option
is removed from $CWARNFLAGS. There is no change in the object
code produced.

There is no attempt to determine if the module should or should not
have such an optimization. A new warning (-Wstrict-aliasing=2)
has been added to the XORG_CWARNFLAGS macro to help  find code
that may interfere with optimization.
---
 Makefile.am |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 781318c..e51639a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,8 @@
 lib_LTLIBRARIES = libXau.la
 
-AM_CFLAGS = $(XAU_CFLAGS) $(CWARNFLAGS)
+AM_CFLAGS = \
+	$(XAU_CFLAGS) \
+	$(CWARNFLAGS) -fno-strict-aliasing
 
 INCLUDES = -I${top_srcdir}/include
 
-- 
1.6.0.4



More information about the xorg-devel mailing list