From f1df664d07924a3aa633cf67e7ef9fe0730f8aad Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 20 Feb 2007 05:03:10 +0000 Subject: New (Identical to gcc-core-4.1.2-rtems4.8-20070216.diff) --- .../patches/gcc-core-4.1.2-rtems4.7-20070216.diff | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 contrib/crossrpms/patches/gcc-core-4.1.2-rtems4.7-20070216.diff diff --git a/contrib/crossrpms/patches/gcc-core-4.1.2-rtems4.7-20070216.diff b/contrib/crossrpms/patches/gcc-core-4.1.2-rtems4.7-20070216.diff new file mode 100644 index 0000000000..2e982d12e8 --- /dev/null +++ b/contrib/crossrpms/patches/gcc-core-4.1.2-rtems4.7-20070216.diff @@ -0,0 +1,69 @@ +diff -uNr gcc-4.1.2.orig/gcc/config/arm/rtems-elf.h gcc-4.1.2/gcc/config/arm/rtems-elf.h +--- gcc-4.1.2.orig/gcc/config/arm/rtems-elf.h 2005-11-22 00:28:29.000000000 +0100 ++++ gcc-4.1.2/gcc/config/arm/rtems-elf.h 2007-02-16 09:28:48.000000000 +0100 +@@ -27,6 +27,7 @@ + #define TARGET_OS_CPP_BUILTINS() \ + do { \ + builtin_define ("__rtems__"); \ ++ builtin_define ("__USE_INIT_FINI__"); \ + builtin_assert ("system=rtems"); \ + } while (0) + +diff -uNr gcc-4.1.2.orig/gcc/config/c4x/rtems.h gcc-4.1.2/gcc/config/c4x/rtems.h +--- gcc-4.1.2.orig/gcc/config/c4x/rtems.h 2005-06-25 03:22:41.000000000 +0200 ++++ gcc-4.1.2/gcc/config/c4x/rtems.h 2007-02-16 09:28:48.000000000 +0100 +@@ -24,6 +24,5 @@ + #define TARGET_OS_CPP_BUILTINS() \ + do { \ + builtin_define ("__rtems__"); \ +- builtin_define ("__USE_INIT_FINI__"); \ + builtin_assert ("system=rtems"); \ + } while (0) +diff -uNr gcc-4.1.2.orig/gcc/config/mips/elf.h gcc-4.1.2/gcc/config/mips/elf.h +--- gcc-4.1.2.orig/gcc/config/mips/elf.h 2005-07-09 10:46:34.000000000 +0200 ++++ gcc-4.1.2/gcc/config/mips/elf.h 2007-02-16 09:28:48.000000000 +0100 +@@ -48,5 +48,3 @@ + + #undef ENDFILE_SPEC + #define ENDFILE_SPEC "crtend%O%s crtn%O%s" +- +-#define NO_IMPLICIT_EXTERN_C 1 +diff -uNr gcc-4.1.2.orig/gcc/config.gcc gcc-4.1.2/gcc/config.gcc +--- gcc-4.1.2.orig/gcc/config.gcc 2006-10-16 01:12:23.000000000 +0200 ++++ gcc-4.1.2/gcc/config.gcc 2007-02-16 09:28:48.000000000 +0100 +@@ -761,6 +761,11 @@ + tmake_file=bfin/t-bfin-elf + use_collect2=no + ;; ++bfin*-rtems*) ++ tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/rtems.h rtems.h" ++ tmake_file=bfin/t-bfin-elf ++ use_collect2=no ++ ;; + bfin*-*) + tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h" + tmake_file=bfin/t-bfin +@@ -1560,7 +1565,7 @@ + tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64" + use_fixproto=yes + ;; +-mips*-*-rtems*) ++mips-*-rtems*) + tm_file="elfos.h ${tm_file} mips/elf.h mips/rtems.h rtems.h" + tmake_file="mips/t-elf t-rtems mips/t-rtems" + ;; +diff -uNr gcc-4.1.2.orig/Makefile.in gcc-4.1.2/Makefile.in +--- gcc-4.1.2.orig/Makefile.in 2006-04-04 23:03:05.000000000 +0200 ++++ gcc-4.1.2/Makefile.in 2007-02-16 09:28:48.000000000 +0100 +@@ -329,9 +329,9 @@ + # CFLAGS will be just -g. We want to ensure that TARGET libraries + # (which we know are built with gcc) are built with optimizations so + # prepend -O2 when setting CFLAGS_FOR_TARGET. +-CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) ++CFLAGS_FOR_TARGET = $(strip -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)) + SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@ +-CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) ++CXXFLAGS_FOR_TARGET = $(strip $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)) + LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) + LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates + LDFLAGS_FOR_TARGET = -- cgit v1.2.3