Patch for PR bootstrap/26872 (force use of GNU as)

Steve Ellcey sje@cup.hp.com
Mon May 8 20:56:00 GMT 2006


In the 4.1 timeframe, the GCC documentation was changed to say that GAS
is required for GCC on hppa*-*-hpux* plaltforms.  The gcc/configure.ac
script was also changed to check for gas but config.gcc was not setting
gas to yes by default.  This patch rectifies that situation.

Tested on hppa1.1-hp-hpux11.11.

OK to check in for main line and GCC 4.1 branch?

Steve Ellcey
sje@cup.hp.com


2006-05-08  Steve Ellcey  <sje@cup.hp.com>

	PR bootstrap/26872
	* config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
	(hppa*64*-*-hpux11*): Ditto.
	(hppa[12]*-*-hpux11*): Ditto.

Index: config.gcc
===================================================================
--- config.gcc	(revision 113615)
+++ config.gcc	(working copy)
@@ -931,6 +931,7 @@ hppa[12]*-*-hpux10*)
 	fi
 	use_collect2=yes
 	use_fixproto=yes
+	gas=yes
 	;;
 hppa*64*-*-hpux11*)
 	target_cpu_default="MASK_PA_11|MASK_PA_20"
@@ -938,16 +939,9 @@ hppa*64*-*-hpux11*)
 	then
 		target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
 	fi
-	if test x$gas = xyes
-	then
-		tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
-			 pa/pa64-regs.h pa/pa-hpux.h pa/pa-hpux1010.h \
-			 pa/pa-hpux11.h"
-	else
-		tm_file="pa/pa64-start.h ${tm_file} dbxelf.h pa/elf.h \
-			 pa/pa64-regs.h pa/pa-hpux.h pa/pa-hpux1010.h \
-			 pa/pa-hpux11.h"
-	fi
+	tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
+		 pa/pa64-regs.h pa/pa-hpux.h pa/pa-hpux1010.h \
+		 pa/pa-hpux11.h"
 	case ${target} in
 	*-*-hpux11.[1-9]*)
 		tm_file="${tm_file} pa/pa-hpux1111.h pa/pa-64.h pa/pa64-hpux.h"
@@ -974,6 +968,7 @@ hppa*64*-*-hpux11*)
 		thread_file=posix 
 		;;
 	esac
+	gas=yes
 	;;
 hppa[12]*-*-hpux11*)
 	case ${target} in
@@ -1003,6 +998,7 @@ hppa[12]*-*-hpux11*)
 		;;
 	esac
 	use_collect2=yes
+	gas=yes
 	;;
 i[34567]86-*-darwin*)
 	# All the configuration is presently done generically.



More information about the Gcc-patches mailing list