summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-03-06 15:31:20 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-03-06 15:31:20 +0000
commitd401b14a2e5ae060a6686ac94b5717d34ed898b4 (patch)
treeae19f4e4779c8e34e3d0896edd30f4bbeed09c14 /contrib
parentPreps for gcc-4.3.0 final. (diff)
downloadrtems-d401b14a2e5ae060a6686ac94b5717d34ed898b4.tar.bz2
New.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/crossrpms/patches/gcc-core-4.3.0-rtems4.9-20080306.diff89
1 files changed, 89 insertions, 0 deletions
diff --git a/contrib/crossrpms/patches/gcc-core-4.3.0-rtems4.9-20080306.diff b/contrib/crossrpms/patches/gcc-core-4.3.0-rtems4.9-20080306.diff
new file mode 100644
index 0000000000..9bff95bc74
--- /dev/null
+++ b/contrib/crossrpms/patches/gcc-core-4.3.0-rtems4.9-20080306.diff
@@ -0,0 +1,89 @@
+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*