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]
Other format: [Raw text]

Patch for compiling mips*-*-netbsd*


When I cross-compile to mips*-*-netbsd* I get errors because it never
arranges to get mips.h:

 > rtl.c: In function `get_mode_alignment':
 > rtl.c:425: error: `BIGGEST_ALIGNMENT' undeclared (first use in this function)
 > rtl.c:425: error: (Each undeclared identifier is reported only once
 > rtl.c:425: error: for each function it appears in.)
 > make: *** [rtl.o] Error 1

Fixed thus.  Tested by cross-compiling cc1 to mipsel-unknown-netbsd.

Ok to install?

		Thanks,
		--Kaveh


2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* config.gcc (mips*-*-netbsd*): Include ${tm_file}.
	
diff -rup orig/egcc-CVS20020811/gcc/config.gcc egcc-CVS20020811/gcc/config.gcc
--- orig/egcc-CVS20020811/gcc/config.gcc	Tue Aug  6 14:26:50 2002
+++ egcc-CVS20020811/gcc/config.gcc	Sun Aug 11 21:12:56 2002
@@ -1855,7 +1855,7 @@ mips-sgi-*)	# would otherwise be caught 
 	exit 1
 	;;
 mips*-*-netbsd*)			# NetBSD/mips, either endian.
-	tm_file="elfos.h mips/netbsd.h"
+	tm_file="elfos.h ${tm_file} mips/netbsd.h"
 	tmake_file="${tmake_file} mips/t-netbsd"
 	;;
 mips*-*-linux*)				# Linux MIPS, either endian.


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