Ilya Zakharevich on Thu, 19 Jan 2006 03:29:03 +0100


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

[PATCH 2.2.11+] cc_opt portability


-fno-strict-aliasing is not supported with older gcc.

Enjoy,
Ilya

--- ./config/get_cc-pre	Sat Oct 29 05:18:06 2005
+++ ./config/get_cc	Thu Nov 17 12:08:24 2005
@@ -116,7 +116,10 @@ if test -n "$__gnuc__"; then
       esac
     ;;
   esac
-  OPTFLAGS="$OPTFLAGS -DGCC_INLINE $warn -fno-strict-aliasing"
+  OPTFLAGS="$OPTFLAGS -DGCC_INLINE $warn"
+  case "$__gnuc__" in
+    2.95.[3-9]*|[3-9].*) OPTFLAGS="$OPTFLAGS -fno-strict-aliasing";;
+  esac
   DBGFLAGS=${DBGFLAGS:-"-g $warn"}
   # Specific optimisations for some architectures
   case "$arch" in