source: rtems/contrib/crossrpms/patches/gcc-core-4.5.1-rtems4.11-20100726.diff @ 674fbe24

4.11
Last change on this file since 674fbe24 was 674fbe24, checked in by Ralf Corsepius <ralf.corsepius@…>, on Aug 1, 2010 at 4:11:56 AM

Rename to final patch name.

  • Property mode set to 100644
File size: 16.7 KB
  • ChangeLog.rtems

    diff -Naur gcc-4.5.1.orig/ChangeLog.rtems gcc-4.5.1/ChangeLog.rtems
    old new  
     1                Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * configure, configure.ac (skipdirs): Add target-libiberty.
     4
  • configure

    diff -Naur gcc-4.5.1.orig/configure gcc-4.5.1/configure
    old new  
    32913291    noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
    32923292    ;;
    32933293  *-*-rtems*)
     3294    skipdirs="$skipdirs target-libiberty"
    32943295    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
    32953296    ;;
    32963297    # The tpf target doesn't support gdb yet.
     
    79777978       # to it.  This is right: we don't want to search that directory
    79787979       # for binaries, but we want the header files in there, so add
    79797980       # them explicitly.
    7980        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
     7981       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
    79817982
    79827983       # Someone might think of using the pre-installed headers on
    79837984       # Canadian crosses, in case the installed compiler is not fully
  • configure.ac

    diff -Naur gcc-4.5.1.orig/configure.ac gcc-4.5.1/configure.ac
    old new  
    528528    noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
    529529    ;;
    530530  *-*-rtems*)
     531    skipdirs="$skipdirs target-libiberty"
    531532    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
    532533    ;;
    533534    # The tpf target doesn't support gdb yet.
     
    30303031       # to it.  This is right: we don't want to search that directory
    30313032       # for binaries, but we want the header files in there, so add
    30323033       # them explicitly.
    3033        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
     3034       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
    30343035
    30353036       # Someone might think of using the pre-installed headers on
    30363037       # Canadian crosses, in case the installed compiler is not fully
  • gcc/ChangeLog.rtems

    diff -Naur gcc-4.5.1.orig/gcc/ChangeLog.rtems gcc-4.5.1/gcc/ChangeLog.rtems
    old new  
     12010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * config.gcc (sparc64-*-rtems*): New target.
     4        * config/sparc/sp64-rtemself.h: New file.
     5
     62010-04-19      Ralf Corsépius <ralf.corsepius@rtems.org>
     7
     8        * ginclude/stddef.h: Define _MACHINE_ANSI_H_ if _X86_64_ANSI_H_ is
     9        defined (Used by amd64-*-netbsdelf5.*).
     10
     112010-04-18      Ralf Corsépius <ralf.corsepius@rtems.org>
     12
     13        * ginclude/stddef.h: Define _MACHINE_ANSI_H_ if _I386_ANSI_H_ is
     14        defined (Used by i386-*-netbsdelf5.*).
     15
     162010-03-15      Ralf Corsépius <ralf.corsepius@rtems.org>
     17
     18        Patch from Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>:
     19        * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional support
     20        for vfp FPU model
     21
     222009-12-01      Ralf Corsépius <ralf.corsepius@rtems.org>
     23
     24        * config/avr/avr.h (LINK_SPEC): Pass -m avrN to ld for -mmcu=avrN.
     25
     262009-11-04      Ralf Corsépius <ralf.corsepius@rtems.org>
     27
     28        * config/m32c/rtems.h, config/m68k/rtemself.h,
     29        config/m68k/rtemself.h, config/sh/rtemself.h,
     30        config/sparc/rtemself.h: Undef WCHAR_TYPE_SIZE, WCHAR_TYPE.
     31        (Resets WCHAR_TYPE's to defaults. Prevents broken GCC tm_files
     32        to interfere and cause wchar_t/wint_t incompatibilities).
     33
     342009-10-15      Ralf Corsépius <ralf.corsepius@rtems.org>
     35
     36        * config/avr/t-rtems: Don't build _exit.
     37
     38                Ralf Corsépius <ralf.corsepius@rtems.org>
     39
     40        * config/rs6000/rtems.h: Support for custom RTEMS multilibs.
     41        Support TARGET_E500.
     42        * config/rs6000/t-rtems: Custom RTEMS multilibs.
     43
     44                Ralf Corsépius <ralf.corsepius@rtems.org>
     45
     46        * config/mips/elf.h: Remove NO_IMPLICIT_EXTERN_C.
     47       
  • gcc/ChangeLog.rtems~

    diff -Naur gcc-4.5.1.orig/gcc/ChangeLog.rtems~ gcc-4.5.1/gcc/ChangeLog.rtems~
    old new  
     12010-05-25  Jon Beniston <jon@beniston.com>
     2
     3        http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43726
     4        * config/lm32/lm32.h: Remove GO_IF_MODE_DEPENDENT_ADDRESS.
     5        (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20747)
     6
     72010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>
     8
     9        * config.gcc (sparc64-*-rtems*): New target.
     10        * config/sparc/sp64-rtemself.h: New file.
     11
     122010-04-19      Ralf Corsépius <ralf.corsepius@rtems.org>
     13
     14        * ginclude/stddef.h: Define _MACHINE_ANSI_H_ if _X86_64_ANSI_H_ is
     15        defined (Used by amd64-*-netbsdelf5.*).
     16
     172010-04-18      Ralf Corsépius <ralf.corsepius@rtems.org>
     18
     19        * ginclude/stddef.h: Define _MACHINE_ANSI_H_ if _I386_ANSI_H_ is
     20        defined (Used by i386-*-netbsdelf5.*).
     21
     222010-03-15      Ralf Corsépius <ralf.corsepius@rtems.org>
     23
     24        Patch from Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>:
     25        * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional support
     26        for vfp FPU model
     27
     282009-12-01      Ralf Corsépius <ralf.corsepius@rtems.org>
     29
     30        * config/avr/avr.h (LINK_SPEC): Pass -m avrN to ld for -mmcu=avrN.
     31
     322009-11-04      Ralf Corsépius <ralf.corsepius@rtems.org>
     33
     34        * config/m32c/rtems.h, config/m68k/rtemself.h,
     35        config/m68k/rtemself.h, config/sh/rtemself.h,
     36        config/sparc/rtemself.h: Undef WCHAR_TYPE_SIZE, WCHAR_TYPE.
     37        (Resets WCHAR_TYPE's to defaults. Prevents broken GCC tm_files
     38        to interfere and cause wchar_t/wint_t incompatibilities).
     39
     402009-10-15      Ralf Corsépius <ralf.corsepius@rtems.org>
     41
     42        * config/avr/t-rtems: Don't build _exit.
     43
     44                Ralf Corsépius <ralf.corsepius@rtems.org>
     45
     46        * config/rs6000/rtems.h: Support for custom RTEMS multilibs.
     47        Support TARGET_E500.
     48        * config/rs6000/t-rtems: Custom RTEMS multilibs.
     49
     50                Ralf Corsépius <ralf.corsepius@rtems.org>
     51
     52        * config/mips/elf.h: Remove NO_IMPLICIT_EXTERN_C.
     53       
  • gcc/config/arm/rtems-elf.h

    diff -Naur gcc-4.5.1.orig/gcc/config/arm/rtems-elf.h gcc-4.5.1/gcc/config/arm/rtems-elf.h
    old new  
    3636 */
    3737#undef SUBTARGET_EXTRA_ASM_SPEC
    3838#define SUBTARGET_EXTRA_ASM_SPEC "\
    39   %{!mhard-float: %{!msoft-float:-mfpu=softfpa}}"
     39  %{!mhard-float: %{!mfpu=vfp: %{!msoft-float:-mfpu=softfpa}}}"
    4040
    4141/*
    4242 *  The default includes --start-group and --end-group which conflicts
  • gcc/config/arm/t-rtems

    diff -Naur gcc-4.5.1.orig/gcc/config/arm/t-rtems gcc-4.5.1/gcc/config/arm/t-rtems
    old new  
    55MULTILIB_EXCEPTIONS  =
    66MULTILIB_MATCHES     = marm=mno-thumb
    77
    8 MULTILIB_OPTIONS    += msoft-float/mhard-float
    9 MULTILIB_DIRNAMES   += soft fpu
    10 MULTILIB_EXCEPTIONS += *mthumb/*mhard-float*
     8MULTILIB_OPTIONS    += mhard-float/mfloat-abi=softfp
     9MULTILIB_DIRNAMES   += fpu softfp
     10MULTILIB_EXCEPTIONS += *mthumb*/*mhard-float* *mthumb*/*mfloat-abi=softfp*
     11MULTILIB_MATCHES     =
     12
     13MULTILIB_OPTIONS    += mfpu=vfp
     14MULTILIB_DIRNAMES   += vfp
     15MULTILIB_EXCEPTIONS += *mhard-float*/*mfpu=vfp* *marm*/*mfloat-abi=softfp*/*mfpu=fpa*
     16MULTILIB_EXCLUSIONS += !mthumb/mfloat-abi=softfp/!mfpu=vfp
     17
     18# default float model is fpa, so don't create a explicit copy of it
     19MULTILIB_EXCEPTIONS += *marm*/*mfpa*
     20
     21# permutations of the options which are useful (+) or make no sense (-),
     22# defaults are in brackets:
     23# + (arm/soft/fpa)
     24# + (arm/soft)/vfp
     25# - (arm)/softfp(/fpa)
     26# + (arm)/softfp/vfp
     27# + (arm)/hard-float(/fpa)
     28# - (arm)/hard-float/vfp
     29# + thumb/(soft/fpa)
     30# + thumb/(soft/)vfp
     31# - thumb/softfp/fpa
     32# - thumb/softfp/vfp
     33# - thumb/hard-float/fpa
     34# - thumb/hard-float/vfp
     35
     36# subdirs to be used for multilibs and their respective options:
     37#/thumb/vfp  -> thumb/soft/vfp
     38#/thumb/fpa  -> thumb/soft/fpa
     39#/thumb      -> thumb/soft/fpa
     40#/vfp        -> arm/soft/vfp
     41#/softfp/vfp -> arm/softfp/cfp
     42#/fpu/fpa    -> arm/hard/fpa
     43#/fpu        -> arm/hard/fpa
     44#/fpa        -> arm/soft/fpa
     45#.           -> arm/soft/fpa
  • gcc/config/avr/t-rtems

    diff -Naur gcc-4.5.1.orig/gcc/config/avr/t-rtems gcc-4.5.1/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/m32c/rtems.h

    diff -Naur gcc-4.5.1.orig/gcc/config/m32c/rtems.h gcc-4.5.1/gcc/config/m32c/rtems.h
    old new  
    2929    }                                           \
    3030  while (0)
    3131
    32 /* Use the default */
     32/* Use the defaults */
    3333#undef LINK_GCC_C_SEQUENCE_SPEC
     34
     35#undef WCHAR_TYPE
     36
     37#undef WCHAR_TYPE_SIZE
  • gcc/config/m68k/rtemself.h

    diff -Naur gcc-4.5.1.orig/gcc/config/m68k/rtemself.h gcc-4.5.1/gcc/config/m68k/rtemself.h
    old new  
    3131        builtin_assert ("system=rtems");        \
    3232    }                                           \
    3333  while (0)
     34
     35/* Use the defaults */
     36#undef WCHAR_TYPE
     37
     38#undef WCHAR_TYPE_SIZE
  • gcc/config/mips/elf.h

    diff -Naur gcc-4.5.1.orig/gcc/config/mips/elf.h gcc-4.5.1/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.5.1.orig/gcc/config/rs6000/rtems.h gcc-4.5.1/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)
     67
     68#undef WCHAR_TYPE
     69
     70#undef WCHAR_TYPE_SIZE
  • gcc/config/rs6000/t-rtems

    diff -Naur gcc-4.5.1.orig/gcc/config/rs6000/t-rtems gcc-4.5.1/gcc/config/rs6000/t-rtems
    old new  
    1919# <http://www.gnu.org/licenses/>.
    2020
    2121MULTILIB_OPTIONS        = \
    22 mcpu=403/mcpu=505/mcpu=601/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400 \
     22mcpu=403/mcpu=505/mcpu=601/mcpu=603e/mcpu=604/mcpu=860/mcpu=7400/mcpu=8540 \
    2323Dmpc8260 \
    2424msoft-float
    2525
    2626MULTILIB_DIRNAMES       = \
    27 m403 m505 m601 m603e m604 m860 m7400 \
     27m403 m505 m601 m603e m604 m860 m7400 m8540 \
    2828mpc8260 \
    2929nof
    3030
     
    4747# Map 750 to .
    4848MULTILIB_MATCHES        += mcpu?750=
    4949
     50# Map e500, 8548 to 8540
     51MULTILIB_MATCHES        += mcpu?8540=mcpu?e500
     52MULTILIB_MATCHES        += mcpu?8540=mcpu?8548
     53
    5054# Soft-float only, default implies msoft-float
    5155# NOTE: Must match with MULTILIB_MATCHES_FLOAT and MULTILIB_MATCHES
    5256MULTILIB_SOFTFLOAT_ONLY = \
     
    8084MULTILIB_EXCEPTIONS += *mcpu=750/Dmpc*
    8185MULTILIB_EXCEPTIONS += *mcpu=860/Dmpc*
    8286MULTILIB_EXCEPTIONS += *mcpu=7400/Dmpc*
     87MULTILIB_EXCEPTIONS += *mcpu=8540/Dmpc*
  • gcc/config/sh/rtemself.h

    diff -Naur gcc-4.5.1.orig/gcc/config/sh/rtemself.h gcc-4.5.1/gcc/config/sh/rtemself.h
    old new  
    2424  builtin_define( "__rtems__" );                \
    2525  builtin_assert( "system=rtems" );             \
    2626} while (0)
     27
     28/* Use the defaults */
     29#undef WCHAR_TYPE
     30
     31#undef WCHAR_TYPE_SIZE
  • gcc/config/sparc/rtemself.h

    diff -Naur gcc-4.5.1.orig/gcc/config/sparc/rtemself.h gcc-4.5.1/gcc/config/sparc/rtemself.h
    old new  
    2929    }                                           \
    3030  while (0)
    3131
    32 /* Use the default */
     32/* Use the defaults */
    3333#undef LINK_GCC_C_SEQUENCE_SPEC
     34
     35#undef WCHAR_TYPE
     36
     37#undef WCHAR_TYPE_SIZE
  • gcc/config/sparc/sp64-rtemself.h

    diff -Naur gcc-4.5.1.orig/gcc/config/sparc/sp64-rtemself.h gcc-4.5.1/gcc/config/sparc/sp64-rtemself.h
    old new  
     1/* Definitions for rtems targeting a SPARC64 using ELF.
     2   Copyright (C) 2010 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
     34
     35/* we are not svr4 */
     36#undef CPP_SUBTARGET_SPEC
     37#define CPP_SUBTARGET_SPEC ""
  • gcc/config.gcc

    diff -Naur gcc-4.5.1.orig/gcc/config.gcc gcc-4.5.1/gcc/config.gcc
    old new  
    24072407        tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
    24082408        extra_parts="crti.o crtn.o crtbegin.o crtend.o"
    24092409        ;;
     2410sparc64-*-rtems*)
     2411        tm_file="${tm_file} dbxelf.h elfos.h svr4.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h sparc/sp64-rtemself.h rtems.h"
     2412        extra_options="${extra_options} sparc/little-endian.opt"
     2413        tmake_file="${tmake_file} sparc/t-crtfm t-rtems"
     2414        extra_parts="crtbegin.o crtend.o"
     2415        ;;
    24102416sparc*-*-solaris2*)
    24112417        tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h"
    24122418        case ${target} in
  • gcc/ginclude/stddef.h

    diff -Naur gcc-4.5.1.orig/gcc/ginclude/stddef.h gcc-4.5.1/gcc/ginclude/stddef.h
    old new  
    5353   one less case to deal with in the following.  */
    5454#if defined (__BSD_NET2__) || defined (____386BSD____) || (defined (__FreeBSD__) && (__FreeBSD__ < 5)) || defined(__NetBSD__)
    5555#include <machine/ansi.h>
     56#if !defined(_MACHINE_ANSI_H_)
     57#if defined(_I386_ANSI_H_) || defined(_X86_64_ANSI_H_)
     58#define _MACHINE_ANSI_H_
    5659#endif
     60#endif
     61#endif
     62
    5763/* On FreeBSD 5, machine/ansi.h does not exist anymore... */
    5864#if defined (__FreeBSD__) && (__FreeBSD__ >= 5)
    5965#include <sys/_types.h>
  • gcc-4.5.0/ChangeLog.rtems

    diff -Naur gcc-4.5.1.orig/gcc-4.5.0/ChangeLog.rtems gcc-4.5.1/gcc-4.5.0/ChangeLog.rtems
    old new  
     1                Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * configure, configure.ac (skipdirs): Add target-libiberty.
     4
  • libgcc/ChangeLog.rtems

    diff -Naur gcc-4.5.1.orig/libgcc/ChangeLog.rtems gcc-4.5.1/libgcc/ChangeLog.rtems
    old new  
     12010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * config.host (sparc64-*-rtems*): New target.
  • libgcc/config.host

    diff -Naur gcc-4.5.1.orig/libgcc/config.host gcc-4.5.1/libgcc/config.host
    old new  
    535535        extra_parts="$extra_parts crtfastmath.o"
    536536        tmake_file="${tmake_file} sparc/t-crtfm"
    537537        ;;
    538 sparc-*-rtems*)
     538sparc-*-rtems* | sparc64-*-rtems* )
    539539        ;;
    540540sparc64-*-solaris2* | sparcv9-*-solaris2*)
    541541        ;;
Note: See TracBrowser for help on using the repository browser.