mirror of
https://github.com/mpv-player/mpv
synced 2025-04-07 01:53:06 +00:00
patch by Andrew A. Gill <superluser@frontiernet.net>:
"patch for ev4, ev5, and ev56 with GCC-3: there's no MVI in DEC Alpha processors prior to the pca56" git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10897 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f5e3da616a
commit
88597f97fe
19
configure
vendored
19
configure
vendored
@ -890,13 +890,14 @@ int main() {
|
|||||||
EOF
|
EOF
|
||||||
$_cc -o "$TMPO" "$TMPC"
|
$_cc -o "$TMPO" "$TMPC"
|
||||||
case `"$TMPO"` in
|
case `"$TMPO"` in
|
||||||
0-0) proc="ev4" ;;
|
|
||||||
1-0) proc="ev5" ;;
|
0-0) proc="ev4"; cpu_understands_mvi="0";;
|
||||||
1-1) proc="ev56" ;;
|
1-0) proc="ev5"; cpu_understands_mvi="0";;
|
||||||
1-101) proc="pca56" ;;
|
1-1) proc="ev56"; cpu_understands_mvi="1";;
|
||||||
2-303) proc="ev6" ;;
|
1-101) proc="pca56"; cpu_understands_mvi="1";;
|
||||||
2-307) proc="ev67" ;;
|
2-303) proc="ev6"; cpu_understands_mvi="1";;
|
||||||
2-1307) proc="ev68" ;;
|
2-307) proc="ev67"; cpu_understands_mvi="1";;
|
||||||
|
2-1307) proc="ev68"; cpu_understands_mvi="1";;
|
||||||
esac
|
esac
|
||||||
echores "$proc"
|
echores "$proc"
|
||||||
|
|
||||||
@ -913,12 +914,12 @@ EOF
|
|||||||
_optimizing="$proc"
|
_optimizing="$proc"
|
||||||
|
|
||||||
echocheck "MVI instruction support in GCC"
|
echocheck "MVI instruction support in GCC"
|
||||||
if test "$_cc_major" -ge "3"; then
|
if test "$_cc_major" -ge "3" && test "$cpu_understands_mvi" = "1" ; then
|
||||||
_def_gcc_mvi_support="#define CAN_COMPILE_ALPHA_MVI 1"
|
_def_gcc_mvi_support="#define CAN_COMPILE_ALPHA_MVI 1"
|
||||||
echores "yes"
|
echores "yes"
|
||||||
else
|
else
|
||||||
_def_gcc_mvi_support="#undef CAN_COMPILE_ALPHA_MVI"
|
_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
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user