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]

[Patch] mips configury checkin and thinko


I just checked this in to fix a thinko in the varargs handling and start
reworking the header files in the gcc directory. Shouldn't affect anyone
other than mips3264 (fixes a few bugs) and mips/linux (shouldn't affect at
all).

Built and tested on mipsisa32-elf.

-eric

-- 
Look out behind you!

2001-10-04  Eric Christopher  <echristo@redhat.com>

	* config/mips/mips.c (init_cumulative_args): Remember to set
	cum->prototype.
	* config.gcc: Redo linux configuration. Add target_cpu_default
	of soft-float to all mipsisa32 combinations and tx39.
	* config/mips/linux.h: Remove include of mips.h.

Index: gcc/config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.92
diff -u -p -w -r1.92 config.gcc
--- config.gcc	2001/10/02 10:59:37	1.92
+++ config.gcc	2001/10/04 08:33:39
@@ -2228,13 +2228,17 @@ mipsel-*-netbsd* | mips-dec-netbsd*)    
 	;;
 mips*-*-linux*)				# Linux MIPS, either endian.
 	xmake_file=x-linux
-	tm_file="linux.h mips/linux.h"
 	case $machine in
 		mipsisa32el-*)
-			tm_file="mips/little.h $tm_file mips/isa32-linux.h";;
+			tm_file="elfos.h mips/elfl.h mips/linux.h mips/isa32-linux.h"
+			target_cpu_default="MASK_SOFT_FLOAT"
+			;;
                 mipsisa32-*)
-			tm_file="$tm_file mips/isa32-linux.h";;
-	       	mips*el-*)  tm_file="mips/little.h $tm_file" ;;
+			tm_file="elfos.h mips/elf.h mips/linux.h mips/isa32-linux.h"
+			target_cpu_default="MASK_SOFT_FLOAT"
+			;;
+	       	mips*el-*)  tm_file="elfos.h mips/elfl.h mips/linux.h" ;;
+		*) tm_file="elfos.h mips/elf.h mips/linux.h"
 	esac
 	tmake_file="t-slibgcc-elf-ver t-linux"
 	extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
@@ -2456,6 +2460,7 @@ mips-*-ecoff*)
 mipsisa32-*-elf*)
 	tm_file="mips/isa3264.h mips/abi64.h"
 	tmake_file=mips/t-isa3264
+	target_cpu_default="MASK_SOFT_FLOAT"
 	;;
 mipsel-*-elf*)
 	tm_file="mips/elfl.h"
@@ -2498,6 +2503,7 @@ mips*-*-rtems*)
 mipstx39el-*-elf*)
 	tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
 	tmake_file=mips/t-r3900
+	target_cpu_default="MASK_SOFT_FLOAT"
 	;;
 mipstx39-*-elf*)
 	tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
Index: gcc/config/mips/linux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/linux.h,v
retrieving revision 1.28
diff -u -p -w -r1.28 linux.h
--- linux.h	2001/08/11 15:43:20	1.28
+++ linux.h	2001/10/04 08:33:39
@@ -23,8 +23,6 @@ Boston, MA 02111-1307, USA.  */
 /* US Software GOFAST library support.  */
 #define INIT_SUBTARGET_OPTABS INIT_GOFAST_OPTABS
 
-#include "mips/mips.h"
-
 #undef WCHAR_TYPE
 #define WCHAR_TYPE "int"
 
Index: gcc/config/mips/mips.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.c,v
retrieving revision 1.153
diff -u -p -w -r1.153 mips.c
--- mips.c	2001/09/18 17:37:48	1.153
+++ mips.c	2001/10/04 08:33:40
@@ -3854,6 +3854,7 @@ init_cumulative_args (cum, fntype, libna
     }
 
   *cum = zero_cum;
+  cum->prototype = (fntype && TYPE_ARG_TYPES (fntype));
 
   /* Determine if this function has variable arguments.  This is
      indicated by the last argument being 'void_type_mode' if there


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