]> granicus.if.org Git - postgresql/blobdiff - src/template/aix
Rely on inline functions even if that causes warnings in older compilers.
[postgresql] / src / template / aix
index b566ff129df6008b28d3b90470371e30e4f4adb4..414430a22ff9c929d7ca14d1540afab05e683f17 100644 (file)
@@ -12,6 +12,14 @@ if test "$GCC" != yes ; then
   esac
 fi
 
+# "IBM XL C/C++ for AIX, V12.1" miscompiles, for 32-bit, some inline
+# expansions of ginCompareItemPointers() "long long" arithmetic.  To
+# take advantage of inlining, build a 64-bit PostgreSQL.
+test "$GCC" != yes -a $(getconf HARDWARE_BITMODE) == '32'; then
+  echo "$as_me: WARNING: disabling inlining on 32 bit aix due to a bug in xlc" 2>&1
+  CPPFLAGS="$CPPFLAGS -DPG_FORCE_DISABLE_INLINE"
+fi
+
 # Native memset() is faster, tested on:
 #      AIX 5.1 and 5.2, XLC 6.0 (IBM's cc)
 #      AIX 5.3 ML3, gcc 4.0.1