patches/gcc/2.95.3/backport-config.gcc-1.4.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 08 17:48:32 2007 +0000 (2007-05-08)
changeset 78 c3868084d81a
permissions -rw-r--r--
Huge fixes to glibc build, so that we can build at least (and at last):
- use ports addon even when installing headers,
- use optimisation (-O) when installing headers, to avoid unnecessary warnings (thanks Robert P. J. DAY for pointing this out!),
- lowest kernel version to use is only X.Y.Z, not X.Y.Z.T,
- a bit of preparations for NPTL (RSN I hope),
- fix fixing the linker scripts (changing the backup file is kind of useless and stupid);

Shut uClibc finish step: there really is nothing to do;

Add a patch for glibc-2.3.6 weak aliases handling on some archs (ARM and ALPHA at least);

Did not catch the make errors: fixed the pattern matching in scripts/functions;

Introduce a new log level, ALL:
- send components' build messages there,
- DEBUG log level is destined only for crosstool-NG debug messages,
- migrate sub-actions to use appropriate log levels;

Update the armeb-unknown-linux-gnu sample:
- it builds!
- uses gcc-4.0.4 and glibc-2.3.6,
- updated to latest config options set.
yann@1
     1
# Taken from http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config.gcc.diff?r1=1.3&r2=1.4
yann@1
     2
# Should fix error
yann@1
     3
#   Configuration powerpc-host_apple-darwin7.3.0 not supported
yann@1
     4
# when configuring gcc-2.95 on Mac OS X for i686 target
yann@1
     5
# Also create xm-darwin.h, seems to be required, else we get the error
yann@1
     6
#   In file included from .../gcc-2.95.3/gcc/gencheck.c:21:
yann@1
     7
#   hconfig.h:11:30: rs6000/xm-darwin.h: No such file or directory
yann@1
     8
#   make[1]: *** [gencheck.o] Error 1
yann@1
     9
yann@1
    10
yann@1
    11
--- gcc-2.95.3/gcc/configure.old	2004-03-24 12:17:44.000000000 -0800
yann@1
    12
+++ gcc-2.95.3/gcc/configure	2004-03-24 17:14:38.000000000 -0800
yann@1
    13
@@ -5079,6 +5079,10 @@
yann@1
    14
 		tmake_file=rs6000/t-beos
yann@1
    15
 		xmake_file=rs6000/x-beos
yann@1
    16
 		;;
yann@1
    17
+	powerpc-*-darwin*)
yann@1
    18
+		xm_file="rs6000/xm-rs6000.h rs6000/xm-darwin.h"
yann@1
    19
+		xmake_file=rs6000/x-darwin
yann@1
    20
+		;;
yann@1
    21
 	powerpc-*-sysv* | powerpc-*-elf*)
yann@1
    22
 		tm_file=rs6000/sysv4.h
yann@1
    23
 		xm_file="xm-siglist.h rs6000/xm-sysv4.h"
yann@1
    24
--- /dev/null	2003-01-30 02:24:37.000000000 -0800
yann@1
    25
+++ gcc-3.0.4/gcc/config/rs6000/xm-darwin.h	2000-11-20 19:02:09.000000000 -0800
yann@1
    26
@@ -0,0 +1,9 @@
yann@1
    27
+/* Undo the USG definition in xm-rs6000.h, Darwin is a BSD flavor.  */
yann@1
    28
+
yann@1
    29
+#undef USG
yann@1
    30
+
yann@1
    31
+/* Override the usual setting, since Apple's GCC has lame bugs and
yann@1
    32
+   can't handle the initializers.  Someday the bugs will be fixed and
yann@1
    33
+   we can get rid of this silliness.  */
yann@1
    34
+
yann@1
    35
+#define HAVE_DESIGNATED_INITIALIZERS 0