source: rtems-tools/tools/4.9/gcc/gcc-core-4.3.2-rtems4.9-20090825.diff @ ce77d87

4.104.115
Last change on this file since ce77d87 was ce77d87, checked in by Chris Johns <chrisj@…>, on 03/15/13 at 01:10:20

Import the 4.9 patches.

  • Property mode set to 100644
File size: 5.7 KB
  • configure

    diff -Naur gcc-4.3.2.orig/configure gcc-4.3.2/configure
    old new  
    21852185    noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
    21862186    ;;
    21872187  *-*-rtems*)
     2188    skipdirs="$skipdirs target-libiberty"
    21882189    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
    21892190    ;;
    21902191    # The tpf target doesn't support gdb yet.
     
    58295830       # to it.  This is right: we don't want to search that directory
    58305831       # for binaries, but we want the header files in there, so add
    58315832       # them explicitly.
    5832        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
     5833       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
    58335834
    58345835       # Someone might think of using the pre-installed headers on
    58355836       # Canadian crosses, in case the installed compiler is not fully
  • configure.ac

    diff -Naur gcc-4.3.2.orig/configure.ac gcc-4.3.2/configure.ac
    old new  
    462462    noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
    463463    ;;
    464464  *-*-rtems*)
     465    skipdirs="$skipdirs target-libiberty"
    465466    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
    466467    ;;
    467468    # The tpf target doesn't support gdb yet.
     
    23402341       # to it.  This is right: we don't want to search that directory
    23412342       # for binaries, but we want the header files in there, so add
    23422343       # them explicitly.
    2343        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
     2344       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
    23442345
    23452346       # Someone might think of using the pre-installed headers on
    23462347       # Canadian crosses, in case the installed compiler is not fully
  • gcc/config/arm/rtems-elf.h

    diff -Naur gcc-4.3.2.orig/gcc/config/arm/rtems-elf.h gcc-4.3.2/gcc/config/arm/rtems-elf.h
    old new  
    4343 *  with how this used to be defined.
    4444 */
    4545#undef LINK_GCC_C_SEQUENCE_SPEC
    46 #define LINK_GCC_C_SEQUENCE_SPEC "%G %L"
  • gcc/config/avr/t-rtems

    diff -Naur gcc-4.3.2.orig/gcc/config/avr/t-rtems gcc-4.3.2/gcc/config/avr/t-rtems
    old new  
    11# Multilibs for avr RTEMS targets.
    22
    3 # ATM, this is just a stub
     3# RTEMS uses _exit from newlib
     4LIB1ASMFUNCS := $(filter-out _exit,$(LIB1ASMFUNCS))
  • gcc/config/m68k/t-rtems

    diff -Naur gcc-4.3.2.orig/gcc/config/m68k/t-rtems gcc-4.3.2/gcc/config/m68k/t-rtems
    old new  
    44                     || MLIB == "5206" \
    55                     || MLIB == "5208" \
    66                     || MLIB == "5307" \
     7                     || MLIB == "5329" \
    78                     || MLIB == "5407" \
    89                     || MLIB == "5475")
  • gcc/config/mips/elf.h

    diff -Naur gcc-4.3.2.orig/gcc/config/mips/elf.h gcc-4.3.2/gcc/config/mips/elf.h
    old new  
    4848#undef  ENDFILE_SPEC
    4949#define ENDFILE_SPEC "crtend%O%s crtn%O%s"
    5050
    51 #define NO_IMPLICIT_EXTERN_C 1
    52 
    5351#define HANDLE_PRAGMA_PACK_PUSH_POP 1
  • gcc/config/rs6000/rtems.h

    diff -Naur gcc-4.3.2.orig/gcc/config/rs6000/rtems.h gcc-4.3.2/gcc/config/rs6000/rtems.h
    old new  
    4949%{mcpu=604:  %{!Dppc*: %{!Dmpc*: -Dmpc604}  } } \
    5050%{mcpu=750:  %{!Dppc*: %{!Dmpc*: -Dmpc750}  } } \
    5151%{mcpu=821:  %{!Dppc*: %{!Dmpc*: -Dmpc821}  } } \
    52 %{mcpu=860:  %{!Dppc*: %{!Dmpc*: -Dmpc860}  } }"
     52%{mcpu=860:  %{!Dppc*: %{!Dmpc*: -Dmpc860}  } } \
     53%{mcpu=8540: %{!Dppc*: %{!Dmpc*: -Dppc8540}  } }"
    5354
    5455#undef  SUBSUBTARGET_EXTRA_SPECS
    5556#define SUBSUBTARGET_EXTRA_SPECS \
    5657  { "cpp_os_rtems",             CPP_OS_RTEMS_SPEC }
     58
     59#undef SUBSUBTARGET_OVERRIDE_OPTIONS
     60#define SUBSUBTARGET_OVERRIDE_OPTIONS           \
     61  do {                                          \
     62    if (TARGET_E500)                            \
     63      {                                         \
     64        rs6000_float_gprs = 1;                  \
     65      }                                         \
     66  } while(0)
  • gcc/config/rs6000/t-rtems

    diff -Naur gcc-4.3.2.orig/gcc/config/rs6000/t-rtems gcc-4.3.2/gcc/config/rs6000/t-rtems
    old new  
    11# Multilibs for powerpc RTEMS targets.
    22
    33MULTILIB_OPTIONS        = \
    4 mcpu=403/mcpu=505/mcpu=601/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400 \
     4mcpu=403/mcpu=505/mcpu=601/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400/mcpu=8540 \
    55Dmpc8260 \
    66msoft-float
    77
    88MULTILIB_DIRNAMES       = \
    9 m403 m505 m601 m603e m604 m860 m7400 \
     9m403 m505 m601 m603e m604 m860 m7400 m8540 \
    1010mpc8260 \
    1111nof
    1212
    13 MULTILIB_EXTRA_OPTS     = mrelocatable-lib mno-eabi mstrict-align
    14 
    1513# MULTILIB_MATCHES      = ${MULTILIB_MATCHES_FLOAT}
    1614MULTILIB_MATCHES        =
    1715MULTILIB_MATCHES        += ${MULTILIB_MATCHES_ENDIAN}
     
    3129# Map 750 to .
    3230MULTILIB_MATCHES        += mcpu?750=
    3331
     32# Map e500, 8548 to 8540
     33MULTILIB_MATCHES        += mcpu?8540=mcpu?e500
     34MULTILIB_MATCHES        += mcpu?8540=mcpu?8548
     35
    3436# Soft-float only, default implies msoft-float
    3537# NOTE: Must match with MULTILIB_MATCHES_FLOAT and MULTILIB_MATCHES
    3638MULTILIB_SOFTFLOAT_ONLY = \
     
    6466MULTILIB_EXCEPTIONS += *mcpu=750/Dmpc*
    6567MULTILIB_EXCEPTIONS += *mcpu=860/Dmpc*
    6668MULTILIB_EXCEPTIONS += *mcpu=7400/Dmpc*
     69MULTILIB_EXCEPTIONS += *mcpu=8540/Dmpc*
Note: See TracBrowser for help on using the repository browser.