source: rtems/contrib/crossrpms/patches/gcc-core-4.1.1-rtems4.8-20070102.diff @ 5ebd9351

4.104.114.84.95
Last change on this file since 5ebd9351 was 227afd10, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/02/07 at 10:44:12

New.

  • Property mode set to 100644
File size: 5.8 KB
  • gcc/config/arm/rtems-elf.h

    diff -uNr gcc-4.1.1.orig/gcc/config/arm/rtems-elf.h gcc-4.1.1/gcc/config/arm/rtems-elf.h
    old new  
    2727#define TARGET_OS_CPP_BUILTINS()                \
    2828    do {                                        \
    2929        builtin_define ("__rtems__");           \
     30        builtin_define ("__USE_INIT_FINI__");   \
    3031        builtin_assert ("system=rtems");        \
    3132    } while (0)
    3233
  • gcc/config/bfin/rtems.h

    diff -uNr gcc-4.1.1.orig/gcc/config/bfin/rtems.h gcc-4.1.1/gcc/config/bfin/rtems.h
    old new  
     1/* Definitions for rtems targeting a bfin
     2   Copyright (C) 2006 Free Software Foundation, Inc.
     3   Contributed by Ralf Corsépius (ralf.corsepius@rtems.org).
     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 2, 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 COPYING.  If not, write to
     19the Free Software Foundation, 51 Franklin Street, Fifth Floor,
     20Boston, MA 02110-1301, USA.  */
     21
     22/* Target OS preprocessor built-ins.  */
     23#define TARGET_OS_CPP_BUILTINS()                \
     24  do                                            \
     25    {                                           \
     26      builtin_define ("__rtems__");             \
     27      builtin_assert ("system=rtems");          \
     28    }                                           \
     29  while (0)
  • gcc/config/c4x/rtems.h

    diff -uNr gcc-4.1.1.orig/gcc/config/c4x/rtems.h gcc-4.1.1/gcc/config/c4x/rtems.h
    old new  
    2424#define TARGET_OS_CPP_BUILTINS()                \
    2525    do {                                        \
    2626        builtin_define ("__rtems__");           \
    27         builtin_define ("__USE_INIT_FINI__");   \
    2827        builtin_assert ("system=rtems");        \
    2928    } while (0)
  • gcc/config/mips/elf.h

    diff -uNr gcc-4.1.1.orig/gcc/config/mips/elf.h gcc-4.1.1/gcc/config/mips/elf.h
    old new  
    4848
    4949#undef  ENDFILE_SPEC
    5050#define ENDFILE_SPEC "crtend%O%s crtn%O%s"
    51 
    52 #define NO_IMPLICIT_EXTERN_C 1
  • gcc/config/mips/t-rtems

    diff -uNr gcc-4.1.1.orig/gcc/config/mips/t-rtems gcc-4.1.1/gcc/config/mips/t-rtems
    old new  
    11# Custom multilibs for RTEMS
    22
    3 MULTILIB_OPTIONS = mips1/mips3/mips32 msoft-float/msingle-float
    4 MULTILIB_DIRNAMES = mips1 mips3 mips32 soft-float single
    5 MULTILIB_MATCHES = msingle-float=m4650
     3# default is mips1 EB hard-float
     4MULTILIB_OPTIONS = mips1/mips3/mips32 EB/EL msoft-float
     5MULTILIB_DIRNAMES = mips1 mips3 mips32 eb el soft-float
     6MULTILIB_MATCHES = EL=mel EB=meb
     7
     8MULTILIB_EXCEPTIONS =
     9
     10# Big endian only
     11MULTILIB_EXCEPTIONS += EL*
     12MULTILIB_EXCEPTIONS += mips32/EL*
     13
     14# Little endian only
     15MULTILIB_EXCEPTIONS += mips3
     16MULTILIB_EXCEPTIONS += mips3/msoft-float
  • gcc/config.gcc

    diff -uNr gcc-4.1.1.orig/gcc/config.gcc gcc-4.1.1/gcc/config.gcc
    old new  
    761761        tmake_file=bfin/t-bfin-elf
    762762        use_collect2=no
    763763        ;;
     764bfin*-rtems*)
     765        tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/rtems.h rtems.h"
     766        tmake_file=bfin/t-bfin-elf
     767        use_collect2=no
     768        ;;
    764769bfin*-*)
    765770        tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h"
    766771        tmake_file=bfin/t-bfin
     
    15601565        tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
    15611566        use_fixproto=yes
    15621567        ;;
    1563 mips*-*-rtems*)
     1568mips-*-rtems*)
    15641569        tm_file="elfos.h ${tm_file} mips/elf.h mips/rtems.h rtems.h"
    15651570        tmake_file="mips/t-elf t-rtems mips/t-rtems"
    15661571        ;;
  • gcc/Makefile.in

    diff -uNr gcc-4.1.1.orig/gcc/Makefile.in gcc-4.1.1/gcc/Makefile.in
    old new  
    36163616install-driver: installdirs xgcc$(exeext)
    36173617        -rm -f $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
    36183618        -$(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
    3619         -rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version)
     3619        -rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version)$(exeext)
    36203620        -( cd $(DESTDIR)$(bindir) && \
    3621            $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version) )
     3621           $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version)$(exeext) )
    36223622        -if [ -f gcc-cross$(exeext) ] ; then \
    36233623          if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \
    36243624            rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \
  • Makefile.in

    diff -uNr gcc-4.1.1.orig/Makefile.in gcc-4.1.1/Makefile.in
    old new  
    329329# CFLAGS will be just -g.  We want to ensure that TARGET libraries
    330330# (which we know are built with gcc) are built with optimizations so
    331331# prepend -O2 when setting CFLAGS_FOR_TARGET.
    332 CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
     332CFLAGS_FOR_TARGET = $(strip -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET))
    333333SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
    334 CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
     334CXXFLAGS_FOR_TARGET = $(strip $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET))
    335335LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
    336336LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
    337337LDFLAGS_FOR_TARGET =
Note: See TracBrowser for help on using the repository browser.