[5b622a9d] | 1 | diff -Naur gcc-4.3.1.orig/configure gcc-4.3.1/configure |
---|
| 2 | --- gcc-4.3.1.orig/configure 2008-02-02 04:29:30.000000000 +0100 |
---|
| 3 | +++ gcc-4.3.1/configure 2008-06-28 05:54:55.000000000 +0200 |
---|
| 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 |
---|
| 21 | diff -Naur gcc-4.3.1.orig/configure.ac gcc-4.3.1/configure.ac |
---|
| 22 | --- gcc-4.3.1.orig/configure.ac 2008-02-02 04:29:30.000000000 +0100 |
---|
| 23 | +++ gcc-4.3.1/configure.ac 2008-06-28 05:54:55.000000000 +0200 |
---|
| 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 |
---|
| 41 | diff -Naur gcc-4.3.1.orig/gcc/config/m68k/t-rtems gcc-4.3.1/gcc/config/m68k/t-rtems |
---|
| 42 | --- gcc-4.3.1.orig/gcc/config/m68k/t-rtems 2008-02-16 06:52:54.000000000 +0100 |
---|
| 43 | +++ gcc-4.3.1/gcc/config/m68k/t-rtems 2008-06-28 05:55:58.000000000 +0200 |
---|
| 44 | @@ -4,5 +4,6 @@ |
---|
| 45 | || MLIB == "5206" \ |
---|
| 46 | || MLIB == "5208" \ |
---|
| 47 | || MLIB == "5307" \ |
---|
| 48 | + || MLIB == "5329" \ |
---|
| 49 | || MLIB == "5407" \ |
---|
| 50 | || MLIB == "5475") |
---|
| 51 | diff -Naur gcc-4.3.1.orig/gcc/config/mips/elf.h gcc-4.3.1/gcc/config/mips/elf.h |
---|
| 52 | --- gcc-4.3.1.orig/gcc/config/mips/elf.h 2007-08-02 12:49:31.000000000 +0200 |
---|
| 53 | +++ gcc-4.3.1/gcc/config/mips/elf.h 2008-06-28 05:54:55.000000000 +0200 |
---|
| 54 | @@ -48,6 +48,4 @@ |
---|
| 55 | #undef ENDFILE_SPEC |
---|
| 56 | #define ENDFILE_SPEC "crtend%O%s crtn%O%s" |
---|
| 57 | |
---|
| 58 | -#define NO_IMPLICIT_EXTERN_C 1 |
---|
| 59 | - |
---|
| 60 | #define HANDLE_PRAGMA_PACK_PUSH_POP 1 |
---|
| 61 | diff -Naur gcc-4.3.1.orig/gcc/config/rs6000/rtems.h gcc-4.3.1/gcc/config/rs6000/rtems.h |
---|
| 62 | --- gcc-4.3.1.orig/gcc/config/rs6000/rtems.h 2007-08-02 12:49:31.000000000 +0200 |
---|
| 63 | +++ gcc-4.3.1/gcc/config/rs6000/rtems.h 2008-06-28 05:54:55.000000000 +0200 |
---|
| 64 | @@ -49,8 +49,18 @@ |
---|
| 65 | %{mcpu=604: %{!Dppc*: %{!Dmpc*: -Dmpc604} } } \ |
---|
| 66 | %{mcpu=750: %{!Dppc*: %{!Dmpc*: -Dmpc750} } } \ |
---|
| 67 | %{mcpu=821: %{!Dppc*: %{!Dmpc*: -Dmpc821} } } \ |
---|
| 68 | -%{mcpu=860: %{!Dppc*: %{!Dmpc*: -Dmpc860} } }" |
---|
| 69 | +%{mcpu=860: %{!Dppc*: %{!Dmpc*: -Dmpc860} } } \ |
---|
| 70 | +%{mcpu=8540: %{!Dppc*: %{!Dmpc*: -Dppc8540} } }" |
---|
| 71 | |
---|
| 72 | #undef SUBSUBTARGET_EXTRA_SPECS |
---|
| 73 | #define SUBSUBTARGET_EXTRA_SPECS \ |
---|
| 74 | { "cpp_os_rtems", CPP_OS_RTEMS_SPEC } |
---|
| 75 | + |
---|
| 76 | +#undef SUBSUBTARGET_OVERRIDE_OPTIONS |
---|
| 77 | +#define SUBSUBTARGET_OVERRIDE_OPTIONS \ |
---|
| 78 | + do { \ |
---|
| 79 | + if (TARGET_E500) \ |
---|
| 80 | + { \ |
---|
| 81 | + rs6000_float_gprs = 1; \ |
---|
| 82 | + } \ |
---|
| 83 | + } while(0) |
---|
| 84 | diff -Naur gcc-4.3.1.orig/gcc/config/rs6000/t-rtems gcc-4.3.1/gcc/config/rs6000/t-rtems |
---|
| 85 | --- gcc-4.3.1.orig/gcc/config/rs6000/t-rtems 2005-05-27 09:54:06.000000000 +0200 |
---|
| 86 | +++ gcc-4.3.1/gcc/config/rs6000/t-rtems 2008-06-28 05:54:55.000000000 +0200 |
---|
| 87 | @@ -1,12 +1,12 @@ |
---|
| 88 | # Multilibs for powerpc RTEMS targets. |
---|
| 89 | |
---|
| 90 | MULTILIB_OPTIONS = \ |
---|
| 91 | -mcpu=403/mcpu=505/mcpu=601/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400 \ |
---|
| 92 | +mcpu=403/mcpu=505/mcpu=601/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400/mcpu=8540 \ |
---|
| 93 | Dmpc8260 \ |
---|
| 94 | msoft-float |
---|
| 95 | |
---|
| 96 | MULTILIB_DIRNAMES = \ |
---|
| 97 | -m403 m505 m601 m603e m604 m860 m7400 \ |
---|
| 98 | +m403 m505 m601 m603e m604 m860 m7400 m8540 \ |
---|
| 99 | mpc8260 \ |
---|
| 100 | nof |
---|
| 101 | |
---|
| 102 | @@ -31,6 +31,10 @@ |
---|
| 103 | # Map 750 to . |
---|
| 104 | MULTILIB_MATCHES += mcpu?750= |
---|
| 105 | |
---|
| 106 | +# Map e500, 8548 to 8540 |
---|
| 107 | +MULTILIB_MATCHES += mcpu?8540=mcpu?e500 |
---|
| 108 | +MUTLILIB_MATCHES += mcpu?8540=mcpu?8548 |
---|
| 109 | + |
---|
| 110 | # Soft-float only, default implies msoft-float |
---|
| 111 | # NOTE: Must match with MULTILIB_MATCHES_FLOAT and MULTILIB_MATCHES |
---|
| 112 | MULTILIB_SOFTFLOAT_ONLY = \ |
---|
| 113 | @@ -64,3 +68,4 @@ |
---|
| 114 | MULTILIB_EXCEPTIONS += *mcpu=750/Dmpc* |
---|
| 115 | MULTILIB_EXCEPTIONS += *mcpu=860/Dmpc* |
---|
| 116 | MULTILIB_EXCEPTIONS += *mcpu=7400/Dmpc* |
---|
| 117 | +MULTILIB_EXCEPTIONS += *mcpu=8540/Dmpc* |
---|