source: rtems/contrib/crossrpms/patches/gcc-core-4.3.3-rtems4.10-20090125.diff @ b2b9ba12

4.104.115
Last change on this file since b2b9ba12 was b2b9ba12, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 26, 2009 at 4:50:11 AM

New.

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

    diff -Naur gcc-4.3.3.orig/configure gcc-4.3.3/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.3.orig/configure.ac gcc-4.3.3/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.3.orig/gcc/config/arm/rtems-elf.h gcc-4.3.3/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/m32c/rtems.h

    diff -Naur gcc-4.3.3.orig/gcc/config/m32c/rtems.h gcc-4.3.3/gcc/config/m32c/rtems.h
    old new  
     1/* Definitions for rtems targeting a M32C using ELF.
     2   Copyright (C) 2008, Free Software Foundation, Inc.
     3   Contributed by Joel Sherrill (joel@OARcorp.com).
     4
     5This file is part of GCC.
     6
     7GCC is free software; you can redistribute it and/or modify
     8it under the terms of the GNU General Public License as published by
     9the Free Software Foundation; either version 3, or (at your option)
     10any later version.
     11
     12GCC is distributed in the hope that it will be useful,
     13but WITHOUT ANY WARRANTY; without even the implied warranty of
     14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15GNU General Public License for more details.
     16
     17You should have received a copy of the GNU General Public License
     18along with GCC; see the file COPYING3.  If not see
     19<http://www.gnu.org/licenses/>.  */
     20
     21/* Target OS builtins.  */
     22#undef TARGET_OS_CPP_BUILTINS
     23#define TARGET_OS_CPP_BUILTINS()                \
     24  do                                            \
     25    {                                           \
     26        builtin_define ("__rtems__");           \
     27        builtin_define ("__USE_INIT_FINI__");   \
     28        builtin_assert ("system=rtems");        \
     29    }                                           \
     30  while (0)
     31
     32/* Use the default */
     33#undef LINK_GCC_C_SEQUENCE_SPEC
  • gcc/config/m32r/rtems.h

    diff -Naur gcc-4.3.3.orig/gcc/config/m32r/rtems.h gcc-4.3.3/gcc/config/m32r/rtems.h
    old new  
     1/* Definitions for rtems targeting a M32R using ELF.
     2   Copyright (C) 2008, Free Software Foundation, Inc.
     3   Contributed by Joel Sherrill (joel@OARcorp.com).
     4
     5This file is part of GCC.
     6
     7GCC is free software; you can redistribute it and/or modify
     8it under the terms of the GNU General Public License as published by
     9the Free Software Foundation; either version 3, or (at your option)
     10any later version.
     11
     12GCC is distributed in the hope that it will be useful,
     13but WITHOUT ANY WARRANTY; without even the implied warranty of
     14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15GNU General Public License for more details.
     16
     17You should have received a copy of the GNU General Public License
     18along with GCC; see the file COPYING3.  If not see
     19<http://www.gnu.org/licenses/>.  */
     20
     21/* Target OS builtins.  */
     22#undef TARGET_OS_CPP_BUILTINS
     23#define TARGET_OS_CPP_BUILTINS()                \
     24  do                                            \
     25    {                                           \
     26        builtin_define ("__rtems__");           \
     27        builtin_define ("__USE_INIT_FINI__");   \
     28        builtin_assert ("system=rtems");        \
     29    }                                           \
     30  while (0)
     31
     32/* Use the default */
     33#undef LINK_GCC_C_SEQUENCE_SPEC
  • gcc/config/m68k/t-rtems

    diff -Naur gcc-4.3.3.orig/gcc/config/m68k/t-rtems gcc-4.3.3/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.3.orig/gcc/config/mips/elf.h gcc-4.3.3/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.3.orig/gcc/config/rs6000/rtems.h gcc-4.3.3/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.3.orig/gcc/config/rs6000/t-rtems gcc-4.3.3/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*
  • gcc/config.gcc

    diff -Naur gcc-4.3.3.orig/gcc/config.gcc gcc-4.3.3/gcc/config.gcc
    old new  
    14901490        extra_parts="crtinit.o crtfini.o m32rx/crtinit.o m32rx/crtfini.o"
    14911491        use_fixproto=yes
    14921492        ;;
     1493m32r-*-rtems*)
     1494        tm_file="dbxelf.h elfos.h svr4.h ${tm_file} m32r/rtems.h rtems.h"
     1495        tmake_file="m32r/t-m32r t-rtems"
     1496        extra_parts="crtinit.o crtfini.o"
     1497        ;;
    14931498m32r-*-linux*)
    14941499        tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} m32r/linux.h"
    14951500        # We override the tmake_file for linux -- why?
     
    26362641        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
    26372642        use_collect2=no
    26382643        ;;
     2644m32c-*-rtems*)
     2645        tm_file="dbxelf.h elfos.h svr4.h ${tm_file} m32c/rtems.h rtems.h"
     2646        tmake_file="${tmake_file} t-rtems"
     2647        c_target_objs="m32c-pragma.o"
     2648        cxx_target_objs="m32c-pragma.o"
     2649        ;;
    26392650m32c-*-elf*)
    26402651        tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
    26412652        c_target_objs="m32c-pragma.o"
  • libgcc/config.host

    diff -Naur gcc-4.3.3.orig/libgcc/config.host gcc-4.3.3/libgcc/config.host
    old new  
    403403        ;;
    404404m32rle-*-elf*)
    405405        ;;
     406m32r*-*-rtems*)
     407        ;;
    406408m32r-*-linux*)
    407409        ;;
    408410m32rle-*-linux*)
     
    646648am33_2.0-*-linux*)
    647649        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
    648650        ;;
    649 m32c-*-elf*)
     651m32c-*-elf*|m32c-*-rtems*)
    650652        ;;
    651653*)
    652654        echo "*** Configuration ${host} not supported" 1>&2
Note: See TracBrowser for help on using the repository browser.