[gmime] work around gcc 4.4 strict-aliasing bugs



commit ed4c567686b1632382e64e4f99809701819c6970
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Sat Jan 30 12:45:36 2010 -0500

    work around gcc 4.4 strict-aliasing bugs
    
    2010-01-30  Jeffrey Stedfast  <fejj novell com>
    
    	* configure.ac: Disabled strict-aliasing to work around subtle
    	bugs generated by gcc 4.4 when optimizations are enabled.

 ChangeLog    |    5 +++++
 configure.ac |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5be059c..10e268e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-01-30  Jeffrey Stedfast  <fejj novell com>
 
+	* configure.ac: Disabled strict-aliasing to work around subtle
+	bugs generated by gcc 4.4 when optimizations are enabled.
+
+2010-01-30  Jeffrey Stedfast  <fejj novell com>
+
 	* gmime/gmime-iconv-utils.c (g_mime_iconv_strndup): Cleaned up the
 	code a bit.
 
diff --git a/configure.ac b/configure.ac
index ac6926f..63d87c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -562,6 +562,7 @@ if test "x$GPGME_PTHREAD_LIBS" != "x"; then
 	EXTRA_LIBS="$EXTRA_LIBS $GPGME_PTHREAD_LIBS"
 fi
 
+CFLAGS="$CFLAGS -fno-strict-aliasing"
 LIBS="$LIBS $EXTRA_LIBS"
 
 AC_SUBST(CFLAGS)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]