This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
config.guess/config.sub improvements
- To: egcs at cygnus dot com
- Subject: config.guess/config.sub improvements
- From: "Lassi A. Tuura" <Lassi dot Tuura at cern dot ch>
- Date: Thu, 13 Nov 1997 14:16:39 +0100
- Organization: CERN, European Laboratory for Particle Physics
[-- I already sent this to gcc2@cygnus.com, but then came to think
that perhaps I should send it to this list, too. Is that true
in general, or is it sufficient to send small patches like this
to gcc2 only? --]
Here is a patch for config.guess (from gcc-2.7.2.3) to correctly
determine processor types on HP's PA-RISC, plus small additions for
PowerPC LynxOS and cygwin32. For the cygwin32 entry I am not sure what
is the desired format; please check it.
The PA-RISC table for 800-series is rather complicated and I am not sure
if I got it right; it is correct for the entries I had in my
/opt/langtools/lib/sched.models. In particular, there are lots of
models missing from that file (probably still unassigned), so the
heuristics below might be incorrect for future models. If my
sched.models does not include all past models, then it might be
incorrect for older computers, too.
Cheers,
//lat
--
Lassi.Tuura@cern.ch There's no sunrise without a night
----------------------------------------------------------------
Thu Nov 6 18:48:03 1997 Lassi Tuura <lat@hpatl20.cern.ch>
* config.guess: more accurate determination of HP PA-RISC
processor types for 9000/[678]?? series machines, add support for
PowerPC on LynxOS and for Windows NT on CYGWIN32.
* config.sub: ditto.
*** /asis/src/GNU.LANG/gcc-2.7.2.3/config.guess Tue Jun 24 20:42:50 1997
--- config.guess Thu Nov 6 18:32:37 1997
***************
*** 219,226 ****
case "${UNAME_MACHINE}" in
9000/31? ) HP_ARCH=m68000 ;;
9000/[34]?? ) HP_ARCH=m68k ;;
! 9000/7?? | 9000/8?[79] ) HP_ARCH=hppa1.1 ;;
! 9000/8?? ) HP_ARCH=hppa1.0 ;;
esac
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
--- 219,231 ----
case "${UNAME_MACHINE}" in
9000/31? ) HP_ARCH=m68000 ;;
9000/[34]?? ) HP_ARCH=m68k ;;
! 9000/6?? ) HP_ARCH=hppa1.0 ;;
! 9000/78? ) HP_ARCH=hppa2.0 ;;
! 9000/7?? ) HP_ARCH=hppa1.1 ;;
! 9000/8[67]1 | 9000/80[24] | 9000/8[78]9 | 9000/893 )
! HP_ARCH=hppa2.0 ;;
! 9000/8?[13679] ) HP_ARCH=hppa1.1 ;;
! 9000/8?? ) HP_ARCH=hppa1.0 ;;
esac
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
***************
*** 364,369 ****
--- 359,367 ----
i[34]86:DYNIX/ptx:4*:*)
echo i386-sequent-sysv4
exit 0 ;;
+ i[3456]86:CYGWIN32/NT:*:*)
+ echo ${UNAME_MACHINE}-cygwin32-winnt${UNAME_RELEASE}
+ exit 0 ;;
i[34]86:*:4.*:* | i[34]86:SYSTEM_V:4.*:*)
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
***************
*** 420,425 ****
--- 418,426 ----
TSUNAMI:LynxOS:2.[23]*:*)
echo sparc-lynx-lynxos${UNAME_RELEASE}
exit 0 ;;
+ PowerPC:LynxOS:2.[23]*:*)
+ echo powerpc-lynx-lynxos${UNAME_RELEASE}
+ exit 0 ;;
rs6000:LynxOS:2.[23]*:*)
echo rs6000-lynx-lynxos${UNAME_RELEASE}
exit 0 ;;
*** /asis/src/GNU.LANG/gcc-2.7.2.3/config.sub Tue Jun 24 20:42:50 1997
--- config.sub Thu Nov 6 19:02:04 1997
***************
*** 307,313 ****
hp9k3[2-9][0-9])
basic_machine=m68k-hp
;;
! hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
basic_machine=hppa1.1-hp
;;
hp9k8[0-9][0-9] | hp8[0-9][0-9])
--- 307,326 ----
hp9k3[2-9][0-9])
basic_machine=m68k-hp
;;
! hp9k6[0-9][0-9] | hp6[0-9][0-9] )
! basic_machine=hppa1.0-hp
! ;;
! hp9k7[0-79][0-9] | hp7[0-79][0-9] )
! basic_machine=hppa1.1-hp
! ;;
! hp9k78[0-9] | hp78[0-9] )
! basic_machine=hppa2.0-hp
! ;;
! hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | \
! hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893 )
! basic_machine=hppa2.0-hp
! ;;
! hp9k8[0-9][13679] | hp8[0-9][13679] )
basic_machine=hppa1.1-hp
;;
hp9k8[0-9][0-9] | hp8[0-9][0-9])