patches/gcc/2.95.3/110-backport-config.gcc-1.4.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jan 03 21:11:41 2009 +0000 (2009-01-03)
changeset 1112 c72aecd1a9ef
permissions -rw-r--r--
Get rid of all stuff related to building a /delivery' traball:
- building a delivery tarball has long been broken (since crostool-Ng is installable)
- get rid of implied do_print_filename, that can be mis-leading now tarballs can not be built

/trunk/scripts/build/kernel/bare-metal.sh | 4 0 4 0 ----
/trunk/scripts/build/kernel/linux.sh | 4 0 4 0 ----
/trunk/scripts/build/tools/000-template.sh | 11 0 11 0 -----------
/trunk/scripts/build/tools/100-libelf.sh | 4 0 4 0 ----
/trunk/scripts/build/tools/200-sstrip.sh | 11 1 10 0 +----------
/trunk/scripts/build/binutils.sh | 4 0 4 0 ----
/trunk/scripts/build/cc/gcc.sh | 5 0 5 0 -----
/trunk/scripts/build/debug/000-template.sh | 11 0 11 0 -----------
/trunk/scripts/build/debug/100-dmalloc.sh | 4 0 4 0 ----
/trunk/scripts/build/debug/400-ltrace.sh | 4 0 4 0 ----
/trunk/scripts/build/debug/300-gdb.sh | 7 0 7 0 -------
/trunk/scripts/build/debug/500-strace.sh | 4 0 4 0 ----
/trunk/scripts/build/debug/200-duma.sh | 4 0 4 0 ----
/trunk/scripts/build/libc/none.sh | 5 0 5 0 -----
/trunk/scripts/build/libc/glibc.sh | 10 0 10 0 ----------
/trunk/scripts/build/libc/uClibc.sh | 6 0 6 0 ------
/trunk/scripts/build/libc/eglibc.sh | 10 0 10 0 ----------
/trunk/scripts/build/gmp.sh | 6 0 6 0 ------
/trunk/scripts/build/mpfr.sh | 6 0 6 0 ------
/trunk/docs/overview.txt | 9 0 9 0 ---------
20 files changed, 1 insertion(+), 128 deletions(-)
yann@402
     1
# Taken from http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config.gcc.diff?r1=1.3&r2=1.4
yann@402
     2
# Should fix error
yann@402
     3
#   Configuration powerpc-host_apple-darwin7.3.0 not supported
yann@402
     4
# when configuring gcc-2.95 on Mac OS X for i686 target
yann@402
     5
# Also create xm-darwin.h, seems to be required, else we get the error
yann@402
     6
#   In file included from .../gcc-2.95.3/gcc/gencheck.c:21:
yann@402
     7
#   hconfig.h:11:30: rs6000/xm-darwin.h: No such file or directory
yann@402
     8
#   make[1]: *** [gencheck.o] Error 1
yann@402
     9
yann@402
    10
yann@402
    11
--- gcc-2.95.3/gcc/configure.old	2004-03-24 12:17:44.000000000 -0800
yann@402
    12
+++ gcc-2.95.3/gcc/configure	2004-03-24 17:14:38.000000000 -0800
yann@402
    13
@@ -5079,6 +5079,10 @@
yann@402
    14
 		tmake_file=rs6000/t-beos
yann@402
    15
 		xmake_file=rs6000/x-beos
yann@402
    16
 		;;
yann@402
    17
+	powerpc-*-darwin*)
yann@402
    18
+		xm_file="rs6000/xm-rs6000.h rs6000/xm-darwin.h"
yann@402
    19
+		xmake_file=rs6000/x-darwin
yann@402
    20
+		;;
yann@402
    21
 	powerpc-*-sysv* | powerpc-*-elf*)
yann@402
    22
 		tm_file=rs6000/sysv4.h
yann@402
    23
 		xm_file="xm-siglist.h rs6000/xm-sysv4.h"
yann@402
    24
--- /dev/null	2003-01-30 02:24:37.000000000 -0800
yann@402
    25
+++ gcc-3.0.4/gcc/config/rs6000/xm-darwin.h	2000-11-20 19:02:09.000000000 -0800
yann@402
    26
@@ -0,0 +1,9 @@
yann@402
    27
+/* Undo the USG definition in xm-rs6000.h, Darwin is a BSD flavor.  */
yann@402
    28
+
yann@402
    29
+#undef USG
yann@402
    30
+
yann@402
    31
+/* Override the usual setting, since Apple's GCC has lame bugs and
yann@402
    32
+   can't handle the initializers.  Someday the bugs will be fixed and
yann@402
    33
+   we can get rid of this silliness.  */
yann@402
    34
+
yann@402
    35
+#define HAVE_DESIGNATED_INITIALIZERS 0