* apps/graph-morpho/Makefile.am (STRICT_ALIASING_CXXFLAGS): New.
(samples_image2d_CXXFLAGS): New.
Set to $(AM_CXXFLAGS) $(STRICT_ALIASING_CXXFLAGS).
---
milena/ChangeLog | 8 ++++++++
milena/apps/graph-morpho/Makefile.am | 4 +++-
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 8382b27..f0ad22e 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,11 @@
+2010-04-23 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Prevent g++ 4.2 from issuing bad code for graph-morpho/samples_image2d.
+
+ * apps/graph-morpho/Makefile.am (STRICT_ALIASING_CXXFLAGS): New.
+ (samples_image2d_CXXFLAGS): New.
+ Set to $(AM_CXXFLAGS) $(STRICT_ALIASING_CXXFLAGS).
+
2010-04-22 Roland Levillain <roland(a)lrde.epita.fr>
Fix distcleancheck.
diff --git a/milena/apps/graph-morpho/Makefile.am b/milena/apps/graph-morpho/Makefile.am
index e4cbb6d..7e3d4db 100644
--- a/milena/apps/graph-morpho/Makefile.am
+++ b/milena/apps/graph-morpho/Makefile.am
@@ -1,4 +1,4 @@
-# Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2009, 2010 EPITA Research and Development Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -19,6 +19,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/milena -I$(top_builddir)/milena
# Produce fast code.
APPS_CXXFLAGS = @APPS_CXXFLAGS@
AM_CXXFLAGS = $(APPS_CXXFLAGS)
+STRICT_ALIASING_CXXFLAGS = @STRICT_ALIASING_CXXFLAGS@
noinst_HEADERS = convert.hh debug.hh make.hh morpho.hh make_complex2d.hh
@@ -27,6 +28,7 @@ samples_complex1d_SOURCES = samples-complex1d.cc
samples_image2d_SOURCES = samples-image2d.cc
asf_complex1d_SOURCES = asf-complex1d.cc
asf_image2d_SOURCES = asf-image2d.cc
+samples_image2d_CXXFLAGS = $(AM_CXXFLAGS) $(STRICT_ALIASING_CXXFLAGS)
TESTS = samples-complex1d samples-image2d
--
1.5.6.5
Show replies by date