[PATCH libX11] config: add -fno-strict-aliasing now that it is out of $CWARNFLAGS
Gaetan Nadon
memsize at videotron.ca
Mon Feb 22 05:38:56 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.
---
modules/im/ximcp/Makefile.am | 2 +-
modules/lc/Utf8/Makefile.am | 2 +-
modules/lc/def/Makefile.am | 2 +-
modules/lc/gen/Makefile.am | 2 +-
modules/lc/xlocale/Makefile.am | 2 +-
modules/om/generic/Makefile.am | 2 +-
src/Makefile.am | 2 +-
src/util/Makefile.am | 2 +-
src/xcms/Makefile.am | 2 +-
src/xkb/Makefile.am | 2 +-
src/xlibi18n/Makefile.am | 2 +-
11 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/modules/im/ximcp/Makefile.am b/modules/im/ximcp/Makefile.am
index 3c84ed5..0620594 100644
--- a/modules/im/ximcp/Makefile.am
+++ b/modules/im/ximcp/Makefile.am
@@ -13,7 +13,7 @@ AM_CFLAGS= \
$(BIGFONT_CFLAGS) \
$(XDMCP_CFLAGS) \
$(MALLOC_ZERO_CFLAGS) \
- $(CWARNFLAGS)
+ $(CWARNFLAGS) -fno-strict-aliasing
if XLIB_LOADABLE_I18N
diff --git a/modules/lc/Utf8/Makefile.am b/modules/lc/Utf8/Makefile.am
index ea5e255..ad049e7 100644
--- a/modules/lc/Utf8/Makefile.am
+++ b/modules/lc/Utf8/Makefile.am
@@ -13,7 +13,7 @@ AM_CFLAGS= \
$(BIGFONT_CFLAGS) \
$(XDMCP_CFLAGS) \
$(MALLOC_ZERO_CFLAGS) \
- $(CWARNFLAGS)
+ $(CWARNFLAGS) -fno-strict-aliasing
if XLIB_LOADABLE_I18N
diff --git a/modules/lc/def/Makefile.am b/modules/lc/def/Makefile.am
index 578e62c..e75c28d 100644
--- a/modules/lc/def/Makefile.am
+++ b/modules/lc/def/Makefile.am
@@ -12,7 +12,7 @@ AM_CFLAGS= \
$(X11_CFLAGS) \
$(BIGFONT_CFLAGS) \
$(XDMCP_CFLAGS) \
- $(CWARNFLAGS)
+ $(CWARNFLAGS) -fno-strict-aliasing
if XLIB_LOADABLE_I18N
diff --git a/modules/lc/gen/Makefile.am b/modules/lc/gen/Makefile.am
index a365be6..97b0c3b 100644
--- a/modules/lc/gen/Makefile.am
+++ b/modules/lc/gen/Makefile.am
@@ -12,7 +12,7 @@ AM_CFLAGS= \
$(X11_CFLAGS) \
$(BIGFONT_CFLAGS) \
$(XDMCP_CFLAGS) \
- $(CWARNFLAGS)
+ $(CWARNFLAGS) -fno-strict-aliasing
if XLIB_LOADABLE_I18N
diff --git a/modules/lc/xlocale/Makefile.am b/modules/lc/xlocale/Makefile.am
index 13020f0..19acc5d 100644
--- a/modules/lc/xlocale/Makefile.am
+++ b/modules/lc/xlocale/Makefile.am
@@ -12,7 +12,7 @@ AM_CFLAGS= \
$(X11_CFLAGS) \
$(BIGFONT_CFLAGS) \
$(XDMCP_CFLAGS) \
- $(CWARNFLAGS)
+ $(CWARNFLAGS) -fno-strict-aliasing
if XLIB_LOADABLE_I18N
diff --git a/modules/om/generic/Makefile.am b/modules/om/generic/Makefile.am
index 5a7d927..d129f27 100644
--- a/modules/om/generic/Makefile.am
+++ b/modules/om/generic/Makefile.am
@@ -14,7 +14,7 @@ AM_CFLAGS= \
$(BIGFONT_CFLAGS) \
$(XDMCP_CFLAGS) \
$(MALLOC_ZERO_CFLAGS) \
- $(CWARNFLAGS)
+ $(CWARNFLAGS) -fno-strict-aliasing
if XLIB_LOADABLE_I18N
diff --git a/src/Makefile.am b/src/Makefile.am
index 256e6f1..5ff7a56 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -23,7 +23,7 @@ AM_CFLAGS= \
$(BIGFONT_CFLAGS) \
$(XDMCP_CFLAGS) \
$(XMALLOC_ZERO_CFLAGS) \
- $(CWARNFLAGS)
+ $(CWARNFLAGS) -fno-strict-aliasing
#
# =============================== I18N =============================
diff --git a/src/util/Makefile.am b/src/util/Makefile.am
index 644d6b6..3494287 100644
--- a/src/util/Makefile.am
+++ b/src/util/Makefile.am
@@ -3,7 +3,7 @@ noinst_PROGRAMS=makekeys
makekeys_CFLAGS = \
$(X11_CFLAGS) \
- $(CWARNFLAGS)
+ $(CWARNFLAGS) -fno-strict-aliasing
CC = @CC_FOR_BUILD@
diff --git a/src/xcms/Makefile.am b/src/xcms/Makefile.am
index c01612c..d0fb7e7 100644
--- a/src/xcms/Makefile.am
+++ b/src/xcms/Makefile.am
@@ -16,7 +16,7 @@ AM_CFLAGS= \
$(BIGFONT_CFLAGS) \
$(XDMCP_CFLAGS) \
$(XMALLOC_ZERO_CFLAGS) \
- $(CWARNFLAGS)
+ $(CWARNFLAGS) -fno-strict-aliasing
libxcms_la_SOURCES = \
AddDIC.c \
diff --git a/src/xkb/Makefile.am b/src/xkb/Makefile.am
index f69694e..5222354 100644
--- a/src/xkb/Makefile.am
+++ b/src/xkb/Makefile.am
@@ -13,7 +13,7 @@ AM_CFLAGS= \
$(BIGFONT_CFLAGS) \
$(XDMCP_CFLAGS) \
$(XMALLOC_ZERO_CFLAGS) \
- $(CWARNFLAGS)
+ $(CWARNFLAGS) -fno-strict-aliasing
noinst_LTLIBRARIES = libxkb.la
diff --git a/src/xlibi18n/Makefile.am b/src/xlibi18n/Makefile.am
index 9a27a13..36e3458 100644
--- a/src/xlibi18n/Makefile.am
+++ b/src/xlibi18n/Makefile.am
@@ -14,7 +14,7 @@ AM_CFLAGS= \
$(BIGFONT_CFLAGS) \
$(XDMCP_CFLAGS) \
$(XMALLOC_ZERO_CFLAGS) \
- $(CWARNFLAGS)
+ $(CWARNFLAGS) -fno-strict-aliasing
noinst_LTLIBRARIES = libi18n.la
--
1.6.0.4
More information about the xorg-devel
mailing list