source: rtems/contrib/crossrpms/patches/gcc-core-4.3.2-rtems4.10-20081119.diff @ 9bd4737

4.104.11
Last change on this file since 9bd4737 was 9bd4737, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 19, 2008 at 4:58:41 PM

Fix errors having crept in in previous versions.

  • Property mode set to 100644
File size: 9.2 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/m32c/rtems.h

    diff -Naur gcc-4.3.2.orig/gcc/config/m32c/rtems.h gcc-4.3.2/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.2.orig/gcc/config/m32r/rtems.h gcc-4.3.2/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.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*
  • gcc/config.gcc

    diff -Naur gcc-4.3.2.orig/gcc/config.gcc gcc-4.3.2/gcc/config.gcc
    old new  
    14931493        extra_parts="crtinit.o crtfini.o m32rx/crtinit.o m32rx/crtfini.o"
    14941494        use_fixproto=yes
    14951495        ;;
     1496m32r-*-rtems*)
     1497        tm_file="dbxelf.h elfos.h svr4.h ${tm_file} m32r/rtems.h rtems.h"
     1498        tmake_file="m32r/t-m32r t-rtems"
     1499        extra_parts="crtinit.o crtfini.o"
     1500        ;;
    14961501m32r-*-linux*)
    14971502        tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} m32r/linux.h"
    14981503        # We override the tmake_file for linux -- why?
     
    26392644        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
    26402645        use_collect2=no
    26412646        ;;
     2647m32c-*-rtems*)
     2648        tm_file="dbxelf.h elfos.h svr4.h ${tm_file} m32c/rtems.h rtems.h"
     2649        tmake_file="${tmake_file} t-rtems"
     2650        c_target_objs="m32c-pragma.o"
     2651        cxx_target_objs="m32c-pragma.o"
     2652        ;;
    26422653m32c-*-elf*)
    26432654        tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
    26442655        c_target_objs="m32c-pragma.o"
  • libgcc/config.host

    diff -Naur gcc-4.3.2.orig/libgcc/config.host gcc-4.3.2/libgcc/config.host
    old new  
    392392        ;;
    393393m32rle-*-elf*)
    394394        ;;
     395m32r*-*-rtems*)
     396        ;;
    395397m32r-*-linux*)
    396398        ;;
    397399m32rle-*-linux*)
     
    635637am33_2.0-*-linux*)
    636638        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
    637639        ;;
    638 m32c-*-elf*)
     640m32c-*-elf*|m32c-*-rtems*)
    639641        ;;
    640642*)
    641643        echo "*** Configuration ${host} not supported" 1>&2
Note: See TracBrowser for help on using the repository browser.