# HG changeset patch # User diego # Date 1137791728 0 # Node ID 7ec749924f800b8422d83407feb85c4c7a79efe6 # Parent 7442443767ce3299ef1c5e66fb8b7fc843e84efc AIX compiler CPU-option improvements patch by Derek E. Lewis < dlewis &&@&& solnetworks &&.&& net > diff -r 7442443767ce -r 7ec749924f80 configure --- a/configure Fri Jan 20 21:04:27 2006 +0000 +++ b/configure Fri Jan 20 21:15:28 2006 +0000 @@ -1237,8 +1237,14 @@ # gcc 3.3 and up supports POWER4 if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3" || test "$_cc_major" -ge "4"; then case "$proc" in - POWER4) _march='-mcpu=power4' _mcpu='-mtune=power4' - _def_dcbzl='#undef NO_DCBZL' ;; + POWER4) _march='-mcpu=power4' _mcpu='-mtune=power4' ;; + *) ;; + esac + fi + # gcc 4.0 and up supports POWER5 + if test "$_cc_major" -ge "4"; then + case "$proc" in + POWER5) _march='-mcpu=power5' _mcpu='-mtune=power5' ;; *) ;; esac fi