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

Gaetan Nadon memsize at videotron.ca
Mon Feb 22 05:39:00 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.
---
 src/FreeType/Makefile.am |    2 +-
 src/Makefile.am          |    2 +-
 src/bitmap/Makefile.am   |    2 +-
 src/builtins/Makefile.am |    2 +-
 src/fc/Makefile.am       |    2 +-
 src/fontfile/Makefile.am |    2 +-
 src/stubs/Makefile.am    |    2 +-
 src/util/Makefile.am     |    2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/FreeType/Makefile.am b/src/FreeType/Makefile.am
index fa45da1..580d653 100644
--- a/src/FreeType/Makefile.am
+++ b/src/FreeType/Makefile.am
@@ -3,7 +3,7 @@ INCLUDES =                                \
 
 noinst_LTLIBRARIES = libft.la
 
-AM_CFLAGS = $(FREETYPE_CFLAGS) $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS)
+AM_CFLAGS = $(FREETYPE_CFLAGS) $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS) -fno-strict-aliasing
 
 libft_la_SOURCES = 		\
 	ft.h			\
diff --git a/src/Makefile.am b/src/Makefile.am
index d658667..c81661d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -21,7 +21,7 @@
 
 lib_LTLIBRARIES = libXfont.la
 
-AM_CFLAGS = $(OS_CFLAGS) $(CWARNFLAGS)
+AM_CFLAGS = $(OS_CFLAGS) $(CWARNFLAGS) -fno-strict-aliasing
 
 if XFONT_FONTFILE
 FONTFILE_DIR = fontfile
diff --git a/src/bitmap/Makefile.am b/src/bitmap/Makefile.am
index b5b9674..1951407 100644
--- a/src/bitmap/Makefile.am
+++ b/src/bitmap/Makefile.am
@@ -1,7 +1,7 @@
 INCLUDES =			\
 	-I${top_srcdir}/include
 
-AM_CFLAGS = $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS)
+AM_CFLAGS = $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS) -fno-strict-aliasing
 
 noinst_LTLIBRARIES = libbitmap.la
 
diff --git a/src/builtins/Makefile.am b/src/builtins/Makefile.am
index b203fda..c912cfe 100644
--- a/src/builtins/Makefile.am
+++ b/src/builtins/Makefile.am
@@ -2,7 +2,7 @@ INCLUDES =			\
 	-I${top_srcdir}/include \
 	-I${top_srcdir}/src/bitmap
 
-AM_CFLAGS = $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS)
+AM_CFLAGS = $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS) -fno-strict-aliasing
 
 noinst_LTLIBRARIES = libbuiltins.la
 
diff --git a/src/fc/Makefile.am b/src/fc/Makefile.am
index 3bfd231..d9d8b78 100644
--- a/src/fc/Makefile.am
+++ b/src/fc/Makefile.am
@@ -1,7 +1,7 @@
 INCLUDES =                      \
 	-I${top_srcdir}/include
 
-AM_CFLAGS = $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS)
+AM_CFLAGS = $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS) -fno-strict-aliasing
 
 noinst_LTLIBRARIES = libfc.la
 
diff --git a/src/fontfile/Makefile.am b/src/fontfile/Makefile.am
index aa64ca5..434dc61 100644
--- a/src/fontfile/Makefile.am
+++ b/src/fontfile/Makefile.am
@@ -1,6 +1,6 @@
 INCLUDES = -I${top_srcdir}/include
 
-AM_CFLAGS = $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS)
+AM_CFLAGS = $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS) -fno-strict-aliasing
 
 noinst_LTLIBRARIES = libfontfile.la
 
diff --git a/src/stubs/Makefile.am b/src/stubs/Makefile.am
index 4d60c2a..ad895e3 100644
--- a/src/stubs/Makefile.am
+++ b/src/stubs/Makefile.am
@@ -1,7 +1,7 @@
 INCLUDES =			\
 	-I${top_srcdir}/include
 
-AM_CFLAGS = $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS)
+AM_CFLAGS = $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS) -fno-strict-aliasing
 
 noinst_LTLIBRARIES = libstubs.la
 
diff --git a/src/util/Makefile.am b/src/util/Makefile.am
index 055fc9d..c673d13 100644
--- a/src/util/Makefile.am
+++ b/src/util/Makefile.am
@@ -2,7 +2,7 @@ INCLUDES =			\
 	-I${top_srcdir}/include \
 	-I$(top_srcdir)/src/stubs
 
-AM_CFLAGS = $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS)
+AM_CFLAGS = $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS) -fno-strict-aliasing
 
 noinst_LTLIBRARIES = libutil.la
 
-- 
1.6.0.4



More information about the xorg-devel mailing list