This commit is contained in:
Ralf Corsepius
2008-06-05 02:53:52 +00:00
parent d8d373a1f2
commit 5a820918f1
15 changed files with 0 additions and 11331 deletions
@@ -1,97 +0,0 @@
--- binutils-2.16.1/bfd/config.bfd 31 Jan 2005 17:18:47 -0000 1.181
+++ binutils-2.16.1/bfd/config.bfd 5 Jul 2005 15:32:00 -0000
@@ -369,7 +369,12 @@
targ_selvecs=bfd_elf32_frv_vec
;;
- h8300*-*-elf)
+ h8300*-*-rtemscoff*)
+ targ_defvec=h8300coff_vec
+ targ_underscore=yes
+ ;;
+
+ h8300*-*-elf | h8300*-*-rtems*)
targ_defvec=bfd_elf32_h8300_vec
targ_underscore=yes
;;
--- binutils-2.16.1/gas/configure.tgt 31 Jan 2005 17:18:51 -0000 1.3
+++ binutils-2.16.1/gas/configure.tgt 5 Jul 2005 15:32:03 -0000
@@ -163,9 +163,9 @@
hppa-*-bsd*) fmt=som em=hppa ;;
hppa-*-hiux*) fmt=som em=hppa ;;
- h8300-*-rtems*) fmt=coff ;;
+ h8300-*-rtemscoff*) fmt=coff ;;
h8300-*-coff) fmt=coff ;;
- h8300-*-elf) fmt=elf ;;
+ h8300-*-elf | h8300-*-rtems*) fmt=elf ;;
h8500-*-rtems*) fmt=coff ;;
h8500-*-coff) fmt=coff ;;
--- binutils-2.16.1/ld/configure.tgt 8 Feb 2005 19:54:27 -0000 1.165
+++ binutils-2.16.1/ld/configure.tgt 5 Jul 2005 15:32:18 -0000
@@ -280,10 +280,10 @@
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
xscale-*-coff) targ_emul=armcoff ;;
xscale-*-elf) targ_emul=armelf ;;
-h8300-*-hms* | h8300-*-coff* | h8300-*-rtems*)
+h8300-*-hms* | h8300-*-coff* | h8300-*-rtemscoff*)
targ_emul=h8300; targ_extra_emuls="h8300h h8300s h8300hn h8300sn h8300sx h8300sxn"
;;
-h8300-*-elf*)
+h8300-*-elf* | h8300-*-rtems*)
targ_emul=h8300elf;
targ_extra_emuls="h8300helf h8300self h8300hnelf h8300snelf h8300sxelf h8300sxnelf"
;;
--- binutils-2.16.1/bfd/archive.c 3 Mar 2005 11:40:56 -0000 1.34
+++ binutils-2.16.1/bfd/archive.c 8 Jul 2005 06:28:30 -0000
@@ -1308,6 +1308,13 @@
#define getgid() 0
#endif
+static void print_ar_size( struct ar_hdr* hdr, int val )
+{
+ char buffer[sizeof(hdr->ar_size)+1];
+ sprintf(buffer,"%-10d", val);
+ memcpy(hdr->ar_size,buffer,sizeof(hdr->ar_size));
+}
+
/* Takes a filename, returns an arelt_data for it, or NULL if it can't
make one. The filename must refer to a filename in the filesystem.
The filename field of the ar_hdr will NOT be initialized. If member
@@ -1368,7 +1375,7 @@
#endif
sprintf ((hdr->ar_gid), "%ld", (long) status.st_gid);
sprintf ((hdr->ar_mode), "%-8o", (unsigned int) status.st_mode);
- sprintf ((hdr->ar_size), "%-10ld", (long) status.st_size);
+ print_ar_size(hdr, (long) status.st_size);
/* Correct for a lossage in sprintf whereby it null-terminates. I cannot
understand how these C losers could design such a ramshackle bunch of
IO operations. */
@@ -1660,7 +1667,7 @@
memset (&hdr, 0, sizeof (struct ar_hdr));
strcpy (hdr.ar_name, ename);
/* Round size up to even number in archive header. */
- sprintf (&(hdr.ar_size[0]), "%-10d",
+ print_ar_size(&hdr,
(int) ((elength + 1) & ~(bfd_size_type) 1));
strncpy (hdr.ar_fmag, ARFMAG, 2);
for (i = 0; i < sizeof (struct ar_hdr); i++)
@@ -1913,7 +1920,7 @@
sprintf (hdr.ar_date, "%ld", bfd_ardata (arch)->armap_timestamp);
sprintf (hdr.ar_uid, "%ld", (long) getuid ());
sprintf (hdr.ar_gid, "%ld", (long) getgid ());
- sprintf (hdr.ar_size, "%-10d", (int) mapsize);
+ print_ar_size(&hdr, (int) mapsize);
strncpy (hdr.ar_fmag, ARFMAG, 2);
for (i = 0; i < sizeof (struct ar_hdr); i++)
if (((char *) (&hdr))[i] == '\0')
@@ -2068,7 +2075,7 @@
memset (&hdr, 0, sizeof (struct ar_hdr));
hdr.ar_name[0] = '/';
- sprintf (hdr.ar_size, "%-10d", (int) mapsize);
+ print_ar_size (&hdr, (int) mapsize);
sprintf (hdr.ar_date, "%ld", (long) time (NULL));
/* This, at least, is what Intel coff sets the values to. */
sprintf ((hdr.ar_uid), "%d", 0);
File diff suppressed because it is too large Load Diff
@@ -1,14 +0,0 @@
diff -uNr binutils-2.17.90.orig/ld/configure.tgt binutils-2.17.90/ld/configure.tgt
--- binutils-2.17.90.orig/ld/configure.tgt 2007-08-06 22:00:19.000000000 +0200
+++ binutils-2.17.90/ld/configure.tgt 2007-08-07 08:42:24.000000000 +0200
@@ -113,6 +113,10 @@
targ_extra_emuls="elf32bfinfd"
targ_extra_libpath=$targ_extra_emuls
;;
+bfin-*-rtems*) targ_emul=elf32bfin;
+ targ_extra_emuls="elf32bfinfd"
+ targ_extra_libpath=$targ_extra_emuls
+ ;;
bfin-*-uclinux*) targ_emul=elf32bfin;
targ_extra_emuls="elf32bfinfd"
targ_extra_libpath=$targ_extra_emuls
@@ -1,24 +0,0 @@
diff -uNr binutils-2.18.orig/configure binutils-2.18/configure
--- binutils-2.18.orig/configure 2007-08-06 22:29:40.000000000 +0200
+++ binutils-2.18/configure 2007-11-04 10:15:52.000000000 +0100
@@ -6128,7 +6128,7 @@
# For an installed makeinfo, we require it to be from texinfo 4.4 or
# higher, else we use the "missing" dummy.
if ${MAKEINFO} --version \
- | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
+ | egrep 'texinfo[^0-9]*(4\.([4-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
:
else
MAKEINFO="$MISSING makeinfo"
diff -uNr binutils-2.18.orig/configure.ac binutils-2.18/configure.ac
--- binutils-2.18.orig/configure.ac 2007-08-28 22:24:26.000000000 +0200
+++ binutils-2.18/configure.ac 2007-11-04 10:15:52.000000000 +0100
@@ -2403,7 +2403,7 @@
# For an installed makeinfo, we require it to be from texinfo 4.4 or
# higher, else we use the "missing" dummy.
if ${MAKEINFO} --version \
- | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
+ | egrep 'texinfo[^0-9]*(4\.([4-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
:
else
MAKEINFO="$MISSING makeinfo"
@@ -1,27 +0,0 @@
diff -uNr gcc-4.0.4.orig/gcc/collect2.c gcc-4.0.4/gcc/collect2.c
--- gcc-4.0.4.orig/gcc/collect2.c 2005-06-06 21:21:03.000000000 +0200
+++ gcc-4.0.4/gcc/collect2.c 2007-11-12 08:09:42.000000000 +0100
@@ -1577,7 +1577,7 @@
if (redir)
{
/* Open response file. */
- redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
+ redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, S_IWUSR | S_IRUSR);
/* Duplicate the stdout and stderr file handles
so they can be restored later. */
diff -uNr gcc-4.0.4.orig/gcc/Makefile.in gcc-4.0.4/gcc/Makefile.in
--- gcc-4.0.4.orig/gcc/Makefile.in 2006-09-06 12:30:49.000000000 +0200
+++ gcc-4.0.4/gcc/Makefile.in 2007-11-12 06:39:10.000000000 +0100
@@ -3275,9 +3275,9 @@
install-driver: installdirs xgcc$(exeext)
-rm -f $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
-$(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
- -rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version)
+ -rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version)$(exeext)
-( cd $(DESTDIR)$(bindir) && \
- $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version) )
+ $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version)$(exeext) )
-if [ -f gcc-cross$(exeext) ] ; then \
if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \
rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \
@@ -1,75 +0,0 @@
diff -uNr gcc-4.2.3.orig/gcc/config/arm/rtems-elf.h gcc-4.2.3/gcc/config/arm/rtems-elf.h
--- gcc-4.2.3.orig/gcc/config/arm/rtems-elf.h 2007-09-01 17:28:30.000000000 +0200
+++ gcc-4.2.3/gcc/config/arm/rtems-elf.h 2008-02-02 04:26:47.000000000 +0100
@@ -26,6 +26,7 @@
#define TARGET_OS_CPP_BUILTINS() \
do { \
builtin_define ("__rtems__"); \
+ builtin_define ("__USE_INIT_FINI__"); \
builtin_assert ("system=rtems"); \
} while (0)
diff -uNr gcc-4.2.3.orig/gcc/config/c4x/rtems.h gcc-4.2.3/gcc/config/c4x/rtems.h
--- gcc-4.2.3.orig/gcc/config/c4x/rtems.h 2007-09-01 17:28:30.000000000 +0200
+++ gcc-4.2.3/gcc/config/c4x/rtems.h 2008-02-02 04:26:47.000000000 +0100
@@ -23,6 +23,5 @@
#define TARGET_OS_CPP_BUILTINS() \
do { \
builtin_define ("__rtems__"); \
- builtin_define ("__USE_INIT_FINI__"); \
builtin_assert ("system=rtems"); \
} while (0)
diff -uNr gcc-4.2.3.orig/gcc/config/h8300/t-rtems gcc-4.2.3/gcc/config/h8300/t-rtems
--- gcc-4.2.3.orig/gcc/config/h8300/t-rtems 2004-03-17 03:46:28.000000000 +0100
+++ gcc-4.2.3/gcc/config/h8300/t-rtems 2008-02-02 04:26:47.000000000 +0100
@@ -2,6 +2,6 @@
# -mn is not applicable to RTEMS (-mn implies 16bit void*)
-MULTILIB_OPTIONS = mh/ms mint32
-MULTILIB_DIRNAMES = h8300h h8300s int32
+MULTILIB_OPTIONS = mh/ms/msx mint32
+MULTILIB_DIRNAMES = h8300h h8300s h8sx int32
MULTILIB_EXCEPTIONS = mint32
diff -uNr gcc-4.2.3.orig/gcc/config/m68k/t-rtems gcc-4.2.3/gcc/config/m68k/t-rtems
--- gcc-4.2.3.orig/gcc/config/m68k/t-rtems 2005-02-07 06:13:25.000000000 +0100
+++ gcc-4.2.3/gcc/config/m68k/t-rtems 2008-02-02 04:26:47.000000000 +0100
@@ -1,7 +1,14 @@
# Custom multilibs for RTEMS
-MULTILIB_OPTIONS = m68000/m68020/m5200/mcpu32/m68030/m68040/m68060 m68881/msoft-float
+MULTILIB_OPTIONS = m68000/m68020/m5200/m528x/mcpu32/m68030/m68040/m68060/m5307/m5407/mcfv4e
+MULTILIB_OPTIONS += m68881/msoft-float
MULTILIB_DIRNAMES =
MULTILIB_MATCHES = m68000=mc68000 m68000=m68302 mcpu32=m68332 m68020=mc68020 m68030=mc68030
-MULTILIB_MATCHES += m5200=m528x
-MULTILIB_EXCEPTIONS = m68000/msoft-float m5200/m68881 m5200/msoft-float mcpu32/m68881 mcpu32/msoft-float m68040/m68881 m68060/m68881
+MULTILIB_MATCHES += m5200=m5206e
+MULTILIB_EXCEPTIONS = m68000/msoft-float m68040/m68881 m68060/m68881
+MULTILIB_EXCEPTIONS += mcpu32/m68881 mcpu32/msoft-float
+MULTILIB_EXCEPTIONS += m5200/m68881 m5200/msoft-float
+MULTILIB_EXCEPTIONS += m528x/m68881 m528x/msoft-float
+MULTILIB_EXCEPTIONS += m5307/m68881 m5307/msoft-float
+MULTILIB_EXCEPTIONS += m5407/m68881 m5407/msoft-float
+MULTILIB_EXCEPTIONS += mcfv4e/m68881 mcfv4e/msoft-float
diff -uNr gcc-4.2.3.orig/gcc/config/mips/elf.h gcc-4.2.3/gcc/config/mips/elf.h
--- gcc-4.2.3.orig/gcc/config/mips/elf.h 2007-09-01 17:28:30.000000000 +0200
+++ gcc-4.2.3/gcc/config/mips/elf.h 2008-02-02 04:26:47.000000000 +0100
@@ -48,6 +48,4 @@
#undef ENDFILE_SPEC
#define ENDFILE_SPEC "crtend%O%s crtn%O%s"
-#define NO_IMPLICIT_EXTERN_C 1
-
#define HANDLE_PRAGMA_PACK_PUSH_POP 1
diff -uNr gcc-4.2.3.orig/gcc/gthr-rtems.h gcc-4.2.3/gcc/gthr-rtems.h
--- gcc-4.2.3.orig/gcc/gthr-rtems.h 2005-06-25 04:02:01.000000000 +0200
+++ gcc-4.2.3/gcc/gthr-rtems.h 2008-02-02 04:26:47.000000000 +0100
@@ -38,7 +38,6 @@
#define __GTHREADS 1
#define __GTHREAD_ONCE_INIT 0
-#define __GTHREAD_MUTEX_INIT 0
#define __GTHREAD_MUTEX_INIT_FUNCTION rtems_gxx_mutex_init
#define __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION rtems_gxx_recursive_mutex_init
@@ -1,89 +0,0 @@
diff -Naur gcc-4.3.0.orig/configure gcc-4.3.0/configure
--- gcc-4.3.0.orig/configure 2008-02-02 04:29:30.000000000 +0100
+++ gcc-4.3.0/configure 2008-03-06 16:22:30.000000000 +0100
@@ -2185,6 +2185,7 @@
noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
;;
*-*-rtems*)
+ skipdirs="$skipdirs target-libiberty"
noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
;;
# The tpf target doesn't support gdb yet.
diff -Naur gcc-4.3.0.orig/configure.ac gcc-4.3.0/configure.ac
--- gcc-4.3.0.orig/configure.ac 2008-02-02 04:29:30.000000000 +0100
+++ gcc-4.3.0/configure.ac 2008-03-06 16:22:30.000000000 +0100
@@ -462,6 +462,7 @@
noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
;;
*-*-rtems*)
+ skipdirs="$skipdirs target-libiberty"
noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
;;
# The tpf target doesn't support gdb yet.
diff -Naur gcc-4.3.0.orig/gcc/config/mips/elf.h gcc-4.3.0/gcc/config/mips/elf.h
--- gcc-4.3.0.orig/gcc/config/mips/elf.h 2007-08-02 12:49:31.000000000 +0200
+++ gcc-4.3.0/gcc/config/mips/elf.h 2008-03-06 16:22:30.000000000 +0100
@@ -48,6 +48,4 @@
#undef ENDFILE_SPEC
#define ENDFILE_SPEC "crtend%O%s crtn%O%s"
-#define NO_IMPLICIT_EXTERN_C 1
-
#define HANDLE_PRAGMA_PACK_PUSH_POP 1
diff -Naur gcc-4.3.0.orig/gcc/config/rs6000/rtems.h gcc-4.3.0/gcc/config/rs6000/rtems.h
--- gcc-4.3.0.orig/gcc/config/rs6000/rtems.h 2007-08-02 12:49:31.000000000 +0200
+++ gcc-4.3.0/gcc/config/rs6000/rtems.h 2008-03-06 16:22:30.000000000 +0100
@@ -49,8 +49,18 @@
%{mcpu=604: %{!Dppc*: %{!Dmpc*: -Dmpc604} } } \
%{mcpu=750: %{!Dppc*: %{!Dmpc*: -Dmpc750} } } \
%{mcpu=821: %{!Dppc*: %{!Dmpc*: -Dmpc821} } } \
-%{mcpu=860: %{!Dppc*: %{!Dmpc*: -Dmpc860} } }"
+%{mcpu=860: %{!Dppc*: %{!Dmpc*: -Dmpc860} } } \
+%{mcpu=8540: %{!Dppc*: %{!Dmpc*: -Dppc8540} } }"
#undef SUBSUBTARGET_EXTRA_SPECS
#define SUBSUBTARGET_EXTRA_SPECS \
{ "cpp_os_rtems", CPP_OS_RTEMS_SPEC }
+
+#undef SUBSUBTARGET_OVERRIDE_OPTIONS
+#define SUBSUBTARGET_OVERRIDE_OPTIONS \
+ do { \
+ if (TARGET_E500) \
+ { \
+ rs6000_float_gprs = 1; \
+ } \
+ } while(0)
diff -Naur gcc-4.3.0.orig/gcc/config/rs6000/t-rtems gcc-4.3.0/gcc/config/rs6000/t-rtems
--- gcc-4.3.0.orig/gcc/config/rs6000/t-rtems 2005-05-27 09:54:06.000000000 +0200
+++ gcc-4.3.0/gcc/config/rs6000/t-rtems 2008-03-06 16:22:30.000000000 +0100
@@ -1,12 +1,12 @@
# Multilibs for powerpc RTEMS targets.
MULTILIB_OPTIONS = \
-mcpu=403/mcpu=505/mcpu=601/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400 \
+mcpu=403/mcpu=505/mcpu=601/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400/mcpu=8540 \
Dmpc8260 \
msoft-float
MULTILIB_DIRNAMES = \
-m403 m505 m601 m603e m604 m860 m7400 \
+m403 m505 m601 m603e m604 m860 m7400 m8540 \
mpc8260 \
nof
@@ -31,6 +31,10 @@
# Map 750 to .
MULTILIB_MATCHES += mcpu?750=
+# Map e500, 8548 to 8540
+MULTILIB_MATCHES += mcpu?8540=mcpu?e500
+MUTLILIB_MATCHES += mcpu?8540=mcpu?8548
+
# Soft-float only, default implies msoft-float
# NOTE: Must match with MULTILIB_MATCHES_FLOAT and MULTILIB_MATCHES
MULTILIB_SOFTFLOAT_ONLY = \
@@ -64,3 +68,4 @@
MULTILIB_EXCEPTIONS += *mcpu=750/Dmpc*
MULTILIB_EXCEPTIONS += *mcpu=860/Dmpc*
MULTILIB_EXCEPTIONS += *mcpu=7400/Dmpc*
+MULTILIB_EXCEPTIONS += *mcpu=8540/Dmpc*
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff