[PATCH libXpm] config: add -fno-strict-aliasing now that it is out of $CWARNFLAGS
Gaetan Nadon
memsize at videotron.ca
Mon Feb 22 05:39:03 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.
---
cxpm/Makefile.am | 2 +-
src/Makefile.am | 2 +-
sxpm/Makefile.am | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cxpm/Makefile.am b/cxpm/Makefile.am
index 42cd49d..eac17f3 100644
--- a/cxpm/Makefile.am
+++ b/cxpm/Makefile.am
@@ -1,7 +1,7 @@
bin_PROGRAMS = cxpm
AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include/X11
-AM_CFLAGS = $(CWARNFLAGS) $(XPM_CFLAGS)
+AM_CFLAGS = $(CWARNFLAGS) -fno-strict-aliasing $(XPM_CFLAGS)
cxpm_SOURCES = cxpm.c
diff --git a/src/Makefile.am b/src/Makefile.am
index 0c8652a..e4b059f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -3,7 +3,7 @@
lib_LTLIBRARIES=libXpm.la
AM_CPPFLAGS = -I. -I$(top_srcdir)/include/X11/
-AM_CFLAGS = $(CWARNFLAGS) $(XPM_CFLAGS)
+AM_CFLAGS = $(CWARNFLAGS) -fno-strict-aliasing $(XPM_CFLAGS)
libXpm_la_LDFLAGS = -version-number 4:11:0 -no-undefined
libXpm_la_LIBADD = $(XPM_LIBS)
diff --git a/sxpm/Makefile.am b/sxpm/Makefile.am
index faa192c..312c820 100644
--- a/sxpm/Makefile.am
+++ b/sxpm/Makefile.am
@@ -2,7 +2,7 @@ if BUILD_SXPM
bin_PROGRAMS = sxpm
-AM_CFLAGS = $(CWARNFLAGS) $(SXPM_CFLAGS)
+AM_CFLAGS = $(CWARNFLAGS) -fno-strict-aliasing $(SXPM_CFLAGS)
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include
--
1.6.0.4
More information about the xorg-devel
mailing list