* config.guess (alpha:Linux:*:*): Guard against missing

/proc/cpuinfo by redirecting standard error to /dev/null.

Signed-off-by: Ben Elliston <bje@gnu.org>
This commit is contained in:
Torbjörn Granlund 2019-12-21 12:01:43 +11:00 committed by Ben Elliston
parent 1912ca5041
commit 6f5b719255
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2019-12-21 Torbjörn Granlund <tg@gmplib.org>
* config.guess (alpha:Linux:*:*): Guard against missing
/proc/cpuinfo by redirecting standard error to /dev/null.
2019-09-12 Ben Elliston <bje@gnu.org>
* testsuite/config-guess.data: Sort.

4
config.guess vendored
View File

@ -2,7 +2,7 @@
# Attempt to guess a canonical system name.
# Copyright 1992-2019 Free Software Foundation, Inc.
timestamp='2019-09-10'
timestamp='2019-12-21'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@ -924,7 +924,7 @@ EOF
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;;
alpha:Linux:*:*)
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in
EV5) UNAME_MACHINE=alphaev5 ;;
EV56) UNAME_MACHINE=alphaev56 ;;
PCA56) UNAME_MACHINE=alphapca56 ;;