source: rtems/contrib/crossrpms/patches/gcc-core-4.3.2-rtems4.9-20081205.diff @ b72be3b

4.9
Last change on this file since b72be3b was b72be3b, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/05/08 at 08:26:25

gcc/config/rs6000/t-rtems: Fix silly typo.
gcc/config/arm/rtems-elf.h: Undefine LINK_GCC_C_SEQUENCE_SPEC.

  • Property mode set to 100644
File size: 5.2 KB
RevLine 
[b72be3b]1diff -Naur gcc-4.3.2.orig/configure gcc-4.3.2/configure
2--- gcc-4.3.2.orig/configure    2008-02-02 04:29:30.000000000 +0100
3+++ gcc-4.3.2/configure 2008-12-05 09:15:52.000000000 +0100
4@@ -2185,6 +2185,7 @@
5     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
6     ;;
7   *-*-rtems*)
8+    skipdirs="$skipdirs target-libiberty"
9     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
10     ;;
11     # The tpf target doesn't support gdb yet.
12@@ -5829,7 +5830,7 @@
13        # to it.  This is right: we don't want to search that directory
14        # for binaries, but we want the header files in there, so add
15        # them explicitly.
16-       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
17+       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
18 
19        # Someone might think of using the pre-installed headers on
20        # Canadian crosses, in case the installed compiler is not fully
21diff -Naur gcc-4.3.2.orig/configure.ac gcc-4.3.2/configure.ac
22--- gcc-4.3.2.orig/configure.ac 2008-02-02 04:29:30.000000000 +0100
23+++ gcc-4.3.2/configure.ac      2008-12-05 09:15:52.000000000 +0100
24@@ -462,6 +462,7 @@
25     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
26     ;;
27   *-*-rtems*)
28+    skipdirs="$skipdirs target-libiberty"
29     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
30     ;;
31     # The tpf target doesn't support gdb yet.
32@@ -2340,7 +2341,7 @@
33        # to it.  This is right: we don't want to search that directory
34        # for binaries, but we want the header files in there, so add
35        # them explicitly.
36-       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
37+       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
38 
39        # Someone might think of using the pre-installed headers on
40        # Canadian crosses, in case the installed compiler is not fully
41diff -Naur gcc-4.3.2.orig/gcc/config/arm/rtems-elf.h gcc-4.3.2/gcc/config/arm/rtems-elf.h
42--- gcc-4.3.2.orig/gcc/config/arm/rtems-elf.h   2008-02-06 08:33:26.000000000 +0100
43+++ gcc-4.3.2/gcc/config/arm/rtems-elf.h        2008-12-05 09:17:24.000000000 +0100
44@@ -43,4 +43,3 @@
45  *  with how this used to be defined.
46  */
47 #undef LINK_GCC_C_SEQUENCE_SPEC
48-#define LINK_GCC_C_SEQUENCE_SPEC "%G %L"
49diff -Naur gcc-4.3.2.orig/gcc/config/m68k/t-rtems gcc-4.3.2/gcc/config/m68k/t-rtems
50--- gcc-4.3.2.orig/gcc/config/m68k/t-rtems      2008-02-16 06:52:54.000000000 +0100
51+++ gcc-4.3.2/gcc/config/m68k/t-rtems   2008-12-05 09:15:52.000000000 +0100
52@@ -4,5 +4,6 @@
53                     || MLIB == "5206" \
54                     || MLIB == "5208" \
55                     || MLIB == "5307" \
56+                    || MLIB == "5329" \
57                     || MLIB == "5407" \
58                     || MLIB == "5475")
59diff -Naur gcc-4.3.2.orig/gcc/config/mips/elf.h gcc-4.3.2/gcc/config/mips/elf.h
60--- gcc-4.3.2.orig/gcc/config/mips/elf.h        2007-08-02 12:49:31.000000000 +0200
61+++ gcc-4.3.2/gcc/config/mips/elf.h     2008-12-05 09:15:52.000000000 +0100
62@@ -48,6 +48,4 @@
63 #undef  ENDFILE_SPEC
64 #define ENDFILE_SPEC "crtend%O%s crtn%O%s"
65 
66-#define NO_IMPLICIT_EXTERN_C 1
67-
68 #define HANDLE_PRAGMA_PACK_PUSH_POP 1
69diff -Naur gcc-4.3.2.orig/gcc/config/rs6000/rtems.h gcc-4.3.2/gcc/config/rs6000/rtems.h
70--- gcc-4.3.2.orig/gcc/config/rs6000/rtems.h    2007-08-02 12:49:31.000000000 +0200
71+++ gcc-4.3.2/gcc/config/rs6000/rtems.h 2008-12-05 09:15:52.000000000 +0100
72@@ -49,8 +49,18 @@
73 %{mcpu=604:  %{!Dppc*: %{!Dmpc*: -Dmpc604}  } } \
74 %{mcpu=750:  %{!Dppc*: %{!Dmpc*: -Dmpc750}  } } \
75 %{mcpu=821:  %{!Dppc*: %{!Dmpc*: -Dmpc821}  } } \
76-%{mcpu=860:  %{!Dppc*: %{!Dmpc*: -Dmpc860}  } }"
77+%{mcpu=860:  %{!Dppc*: %{!Dmpc*: -Dmpc860}  } } \
78+%{mcpu=8540: %{!Dppc*: %{!Dmpc*: -Dppc8540}  } }"
79 
80 #undef  SUBSUBTARGET_EXTRA_SPECS
81 #define SUBSUBTARGET_EXTRA_SPECS \
82   { "cpp_os_rtems",            CPP_OS_RTEMS_SPEC }
83+
84+#undef SUBSUBTARGET_OVERRIDE_OPTIONS
85+#define SUBSUBTARGET_OVERRIDE_OPTIONS          \
86+  do {                                         \
87+    if (TARGET_E500)                           \
88+      {                                                \
89+       rs6000_float_gprs = 1;                  \
90+      }                                                \
91+  } while(0)
92diff -Naur gcc-4.3.2.orig/gcc/config/rs6000/t-rtems gcc-4.3.2/gcc/config/rs6000/t-rtems
93--- gcc-4.3.2.orig/gcc/config/rs6000/t-rtems    2005-05-27 09:54:06.000000000 +0200
94+++ gcc-4.3.2/gcc/config/rs6000/t-rtems 2008-12-05 09:16:58.000000000 +0100
95@@ -1,12 +1,12 @@
96 # Multilibs for powerpc RTEMS targets.
97 
98 MULTILIB_OPTIONS       = \
99-mcpu=403/mcpu=505/mcpu=601/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400 \
100+mcpu=403/mcpu=505/mcpu=601/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400/mcpu=8540 \
101 Dmpc8260 \
102 msoft-float
103 
104 MULTILIB_DIRNAMES      = \
105-m403 m505 m601 m603e m604 m860 m7400 \
106+m403 m505 m601 m603e m604 m860 m7400 m8540 \
107 mpc8260 \
108 nof
109 
110@@ -31,6 +31,10 @@
111 # Map 750 to .
112 MULTILIB_MATCHES       += mcpu?750=
113 
114+# Map e500, 8548 to 8540
115+MULTILIB_MATCHES       += mcpu?8540=mcpu?e500
116+MULTILIB_MATCHES       += mcpu?8540=mcpu?8548
117+
118 # Soft-float only, default implies msoft-float
119 # NOTE: Must match with MULTILIB_MATCHES_FLOAT and MULTILIB_MATCHES
120 MULTILIB_SOFTFLOAT_ONLY = \
121@@ -64,3 +68,4 @@
122 MULTILIB_EXCEPTIONS += *mcpu=750/Dmpc*
123 MULTILIB_EXCEPTIONS += *mcpu=860/Dmpc*
124 MULTILIB_EXCEPTIONS += *mcpu=7400/Dmpc*
125+MULTILIB_EXCEPTIONS += *mcpu=8540/Dmpc*
Note: See TracBrowser for help on using the repository browser.