(svn r9513) [NoAI] -Fix: disable strict-aliasing to make GCC 4 stop bitching about it noai
authortruelight
Wed, 28 Mar 2007 09:02:21 +0000
branchnoai
changeset 9569 761e7675f6f2
parent 9568 48d59b89b396
child 9570 553357523c4b
(svn r9513) [NoAI] -Fix: disable strict-aliasing to make GCC 4 stop bitching about it
config.lib
--- a/config.lib	Wed Mar 28 08:36:07 2007 +0000
+++ b/config.lib	Wed Mar 28 09:02:21 2007 +0000
@@ -705,13 +705,14 @@
 	if [ "$os" = "CYGWIN" ] || [ "$os" = "MINGW" ]; then
 		LDFLAGS="$LDFLAGS -Wl,--subsystem,windows"
 		LIBS="$LIBS -lws2_32 -lwinmm -lgdi32 -ldxguid -lole32"
-		# GCC 4.0+ complains about that we break strict-aliasing.
-		#  On most places we don't see how to fix it, and it doesn't
-		#  break anything. So disable strict-aliasing to make the
-		#  compiler all happy.
-		if [ $cc_version -ge 40 ]; then
-			CFLAGS="$CFLAGS -fno-strict-aliasing"
-		fi
+	fi
+
+	# GCC 4.0+ complains about that we break strict-aliasing.
+	#  On most places we don't see how to fix it, and it doesn't
+	#  break anything. So disable strict-aliasing to make the
+	#  compiler all happy.
+	if [ $cc_version -ge 40 ]; then
+		CFLAGS="$CFLAGS -fno-strict-aliasing"
 	fi
 
 	if [ "$os" != "CYGWIN" ] && [ "$os" != "FREEBSD" ] && [ "$os" != "MINGW" ] && [ "$os" != "MORPHOS" ] && [ "$os" != "OSX" ] && [ "$os" != "WINCE" ] && [ "$os" != "PSP" ]; then