# HG changeset patch # User pl # Date 1064107780 0 # Node ID 2ca86c3248b354c4a4c5cf7c5bfcfaef2e61e111 # Parent 2da8559e5f338cdc397070342e0504603a249392 patch by Andrew A. Gill : "patch for ev4, ev5, and ev56 with GCC-3: there's no MVI in DEC Alpha processors prior to the pca56" diff -r 2da8559e5f33 -r 2ca86c3248b3 configure --- a/configure Sun Sep 21 01:23:07 2003 +0000 +++ b/configure Sun Sep 21 01:29:40 2003 +0000 @@ -890,13 +890,14 @@ EOF $_cc -o "$TMPO" "$TMPC" case `"$TMPO"` in - 0-0) proc="ev4" ;; - 1-0) proc="ev5" ;; - 1-1) proc="ev56" ;; - 1-101) proc="pca56" ;; - 2-303) proc="ev6" ;; - 2-307) proc="ev67" ;; - 2-1307) proc="ev68" ;; + + 0-0) proc="ev4"; cpu_understands_mvi="0";; + 1-0) proc="ev5"; cpu_understands_mvi="0";; + 1-1) proc="ev56"; cpu_understands_mvi="1";; + 1-101) proc="pca56"; cpu_understands_mvi="1";; + 2-303) proc="ev6"; cpu_understands_mvi="1";; + 2-307) proc="ev67"; cpu_understands_mvi="1";; + 2-1307) proc="ev68"; cpu_understands_mvi="1";; esac echores "$proc" @@ -913,12 +914,12 @@ _optimizing="$proc" echocheck "MVI instruction support in GCC" - if test "$_cc_major" -ge "3"; then - _def_gcc_mvi_support="#define CAN_COMPILE_ALPHA_MVI 1" + if test "$_cc_major" -ge "3" && test "$cpu_understands_mvi" = "1" ; then + _def_gcc_mvi_support="#define CAN_COMPILE_ALPHA_MVI 1" echores "yes" else _def_gcc_mvi_support="#undef CAN_COMPILE_ALPHA_MVI" - echores "no" + echores "no, GCC = `( $_cc -dumpversion ) 2>&1` (must be >= 3), CPU = $proc (must be pca56 or later)" fi ;;