source: rtems/contrib/crossrpms/patches/gcc-core-4.1.2-rtems4.8-20070613.diff @ 3dd61288

4.104.114.95
Last change on this file since 3dd61288 was c0064d39, checked in by Ralf Corsepius <ralf.corsepius@…>, on 06/13/07 at 15:40:32

Add sparc fpu bug fix.

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

    diff -uNr gcc-4.1.2.orig/gcc/config/arm/rtems-elf.h gcc-4.1.2/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/c4x/rtems.h

    diff -uNr gcc-4.1.2.orig/gcc/config/c4x/rtems.h gcc-4.1.2/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.2.orig/gcc/config/mips/elf.h gcc-4.1.2/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/mips.h

    diff -uNr gcc-4.1.2.orig/gcc/config/mips/mips.h gcc-4.1.2/gcc/config/mips/mips.h
    old new  
    450450#endif
    451451#endif /* IN_LIBGCC2 */
    452452
     453#define TARGET_LIBGCC_SDATA_SECTION ".sdata"
     454
    453455#ifndef MULTILIB_ENDIAN_DEFAULT
    454456#if TARGET_ENDIAN_DEFAULT == 0
    455457#define MULTILIB_ENDIAN_DEFAULT "EL"
     
    27122714/* Define the strings to put out for each section in the object file.  */
    27132715#define TEXT_SECTION_ASM_OP     "\t.text"       /* instructions */
    27142716#define DATA_SECTION_ASM_OP     "\t.data"       /* large data */
    2715 #define SDATA_SECTION_ASM_OP    "\t.sdata"      /* small data */
    27162717
    27172718#undef READONLY_DATA_SECTION_ASM_OP
    27182719#define READONLY_DATA_SECTION_ASM_OP    "\t.rdata"      /* read-only data */
  • gcc/config/sparc/sparc.c

    diff -uNr gcc-4.1.2.orig/gcc/config/sparc/sparc.c gcc-4.1.2/gcc/config/sparc/sparc.c
    old new  
    675675        error ("-mcmodel= is not supported on 32 bit systems");
    676676    }
    677677
    678   fpu = TARGET_FPU; /* save current -mfpu status */
     678  fpu = target_flags & MASK_FPU; /* save current -mfpu status */
    679679
    680680  /* Set the default CPU.  */
    681681  for (def = &cpu_default[0]; def->name; ++def)
  • gcc/config.gcc

    diff -uNr gcc-4.1.2.orig/gcc/config.gcc gcc-4.1.2/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/crtstuff.c

    diff -uNr gcc-4.1.2.orig/gcc/crtstuff.c gcc-4.1.2/gcc/crtstuff.c
    old new  
    225225   in one DSO or the main program is not used in another object.  The
    226226   dynamic linker takes care of this.  */
    227227
     228#ifdef TARGET_LIBGCC_SDATA_SECTION
     229extern void *__dso_handle __attribute__ ((__section__ (TARGET_LIBGCC_SDATA_SECTION)));
     230#endif
    228231#ifdef HAVE_GAS_HIDDEN
    229232extern void *__dso_handle __attribute__ ((__visibility__ ("hidden")));
    230233#endif
  • Makefile.in

    diff -uNr gcc-4.1.2.orig/Makefile.in gcc-4.1.2/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.