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,commited,mips] rtems multilib changes.


I have commited the patch below to GCC-trunk and gcc-3_4-branch.

* It removes little endian multilib variants from mips-rtems-gcc,
because they are not supported by RTEMS' mips port.
* Adds a mips32 multilib variant.
* Lets GCC default to using -G0 (Fixes a long persisting bug in RTEMS).

Ralf


Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 2.7132
diff -u -r2.7132 ChangeLog
--- ChangeLog	15 Jan 2005 04:14:08 -0000	2.7132
+++ ChangeLog	15 Jan 2005 08:37:20 -0000
@@ -1,3 +1,10 @@
+2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>
+
+	* config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
+	* config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS): 
+	Remove little endian multilib variants.
+	Add mips32 multilib variant.
+
 2005-01-15  Kazu Hirata  <kazu@cs.umass.edu>
 
 	* explow.c (copy_all_reg, stabilize): Remove.
Index: config/mips/rtems.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/rtems.h,v
retrieving revision 1.7
diff -u -r1.7 rtems.h
--- config/mips/rtems.h	27 Sep 2003 04:48:26 -0000	1.7
+++ config/mips/rtems.h	15 Jan 2005 08:37:20 -0000
@@ -1,5 +1,6 @@
 /* Definitions for rtems targeting a MIPS using ELF.
-   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2002, 2003, 2005
+   Free Software Foundation, Inc.
    Contributed by Joel Sherrill (joel@OARcorp.com).
 
 This file is part of GCC.
@@ -27,3 +28,9 @@
   builtin_define ("__USE_INIT_FINI__");	\
   builtin_assert ("system=rtems");	\
 } while (0)
+
+/* No sdata.
+ * The RTEMS BSPs expect -G0
+ */
+#undef MIPS_DEFAULT_GVALUE
+#define MIPS_DEFAULT_GVALUE 0
Index: config/mips/t-rtems
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/t-rtems,v
retrieving revision 1.2
diff -u -r1.2 t-rtems
--- config/mips/t-rtems	19 Sep 2003 13:24:47 -0000	1.2
+++ config/mips/t-rtems	15 Jan 2005 08:37:20 -0000
@@ -1,5 +1,5 @@
 # Custom multilibs for RTEMS
 
-MULTILIB_OPTIONS = mips1/mips3 msoft-float/msingle-float EL/EB
-MULTILIB_DIRNAMES = mips1 mips3 soft-float single el eb
+MULTILIB_OPTIONS = mips1/mips3/mips32 msoft-float/msingle-float
+MULTILIB_DIRNAMES = mips1 mips3 mips32 soft-float single
 MULTILIB_MATCHES = msingle-float=m4650

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