config.guess/config.sub improvements

Lassi A. Tuura Lassi.Tuura@cern.ch
Tue Jan 27 13:20:00 GMT 1998


On Fri, 23 Jan 1998, Jeffrey A Law wrote:
>   > 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.
> I was going to try and add your patch to egcs, but things have changed so
> much recently that none of the hunks correctly applies.
> 
> Can you please update and resubmit your patch.
> 
> As we discussed earlier, we should return hppa1.1 instead of hppa2.0 for now;
> you should add a comment about this in config.guess.

OK, here is a new patch; the diffs are against the CVS repository.

Note that this is only for the HP PA-RISC part; I have included a new
ChangeLog entry to reflect this.  Please let me know if there are any
further problems with the patch. 

Now, some other questions regarding the guessed values that my previous
patch solved differently.
 
 * On cygwin32 (or mingw32) config.guess always returns
   `i386-pc-cygwin32'. I see two problems with this: first, it does not
   differentiate between different processor types, and second, it does
   not differentiate between Windows 95 and Windows NT versions.  Since
   several other platforms do not force processor type to `i386', why
   does that happen on Windows?  We would certainly want to optimise the
   code to take advantage of pentium instructions (or even ppro).

   The second may not be important for GCC itself, but I can imagine it
   makes difference for other packages (it certainly does for us).  The
   root of the problem is that the system API is different on NT and 95,
   so applications configured and built for NT will not necessarily run on
   95 and vice versa.  It would be nice to be able to differentiate
   these different binaries.

   (My previous patch returned strings such as `i686-cygwin32-winnt4.0'.)

 * On LynxOS, both RS6000 and PowerPC variants are folded to rs6000-*.
   I know the processors are supposedly similar, but are they really
   that similar?  For all that I know, people here are using PPC
   boards running LynxOS, and so far I have used powerpc-* as the
   configuration string.  I can rename things to rs6000-* if that
   is known to work.  And yes, I have absolutely no clue about this
   platform otherwise---I just need to support gcc on it.

Cheers,
//lat
--
Lassi.Tuura@cern.ch          There's no sunrise without a night
-------------------------------------------------------------------
Tue Jan 27 19:21:41 1998  Lassi A. Tuura  <lat@iki.fi>

	* config.guess: more accurate determination of HP PA-RISC
	processor types for 9000/[678]?? series machines.

	* config.sub: ditto.

Index: config.guess
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/config.guess,v
retrieving revision 1.8
diff -u -p -r1.8 config.guess
--- config.guess	1998/01/22 23:28:32	1.8
+++ config.guess	1998/01/27 18:26:27
@@ -358,8 +358,13 @@ EOF
 	case "${UNAME_MACHINE}" in
 	    9000/31? )            HP_ARCH=m68000 ;;
 	    9000/[34]?? )         HP_ARCH=m68k ;;
-	    9000/7?? | 9000/8?[13679] ) HP_ARCH=hppa1.1 ;;
-	    9000/8?? )            HP_ARCH=hppa1.0 ;;
+	    9000/6?? )		  HP_ARCH=hppa1.0 ;;
+	    9000/78? )		  HP_ARCH=hppa1.1 ;; # FIXME: really hppa2.0
+	    9000/7?? )		  HP_ARCH=hppa1.1 ;;
+	    9000/8[67]1 | 9000/80[24] | 9000/8[78]9 | 9000/893 )
+				  HP_ARCH=hppa1.1 ;; # FIXME: really 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}
Index: config.sub
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/config.sub,v
retrieving revision 1.5
diff -u -p -r1.5 config.sub
--- config.sub	1998/01/04 00:10:30	1.5
+++ config.sub	1998/01/27 18:26:27
@@ -416,7 +416,22 @@ case $basic_machine in
 	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)
+	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] )
+		# FIXME: really hppa2.0-hp
+		basic_machine=hppa1.1-hp
+		;;
+	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | \
+	hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893 )
+		# FIXME: really hppa2.0-hp
+		basic_machine=hppa1.1-hp
+		;;
+	hp9k8[0-9][13679] | hp8[0-9][13679] )
 		basic_machine=hppa1.1-hp
 		;;
 	hp9k8[0-9][0-9] | hp8[0-9][0-9])




More information about the Gcc mailing list