This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: hppa-linux support 6


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]