This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: hppa-linux support 6
- To: Alan Modra <alan at linuxcare dot com dot au>
- Subject: Re: hppa-linux support 6
- From: Ben Elliston <bje at redhat dot com>
- Date: Wed, 4 Apr 2001 20:39:14 +1000 (EST)
- Cc: gcc-patches at gcc dot gnu dot org, config-patches at gnu dot org
- References: <Pine.LNX.4.21.0104042015380.13605-100000@front.linuxcare.com.au>
>>>>> "Alan" == Alan Modra <alan@linuxcare.com.au> writes:
Alan> The rest of the configury changes.
Alan> * config.guess: Add hppa64-linux support.
Alan> * configure.in: Likewise. Accept `parisc' alias for `hppa'.
This patch is already in the FSF config.guess (I'm sure you know that,
since you submitted it).
Alan> + elif test "${UNAME_MACHINE}" = "parisc64" -o "${UNAME_MACHINE}" = "hppa64"; then
Alan> + echo hppa64-unknown-linux-gnu && exit 0
Alan> + elif test "${UNAME_MACHINE}" = "parisc" -o "${UNAME_MACHINE}" = "hppa"; then
Alan> + # Look for CPU level
Alan> + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
Alan> + PA7*)
Alan> + echo hppa1.1-unknown-linux-gnu
Alan> + ;;
Alan> + PA8*)
Alan> + echo hppa2.0-unknown-linux-gnu
Alan> + ;;
Alan> + *)
Alan> + echo hppa-unknown-linux-gnu
Alan> + ;;
Alan> + esac
Alan> + exit 0
Note that Linux detection code like this will be rejected in future.
It violates the style of config.guess, which matches ${UNAME_MACHINE}
with individual cases. (cf. the current config.guess on ftp.gnu.org,
in which I reworked your original patch).
Ben