patches/gcc/2.95.3/backport-config.gcc-1.92.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.91&r2=1.92
yann@1
     2
# Should fix error
yann@1
     3
#   Configuration x86_64-host_unknown-linux-gnu not supported
yann@1
     4
# when configuring gcc-2.95 on x86_64 build for i686 target
yann@1
     5
# It's a bit silly, since tm_file refers to files that don't exist,
yann@1
     6
# but as long as x86_64 is just the build machine, that doesn't matter.
yann@1
     7
yann@1
     8
--- gcc-2.95.3/gcc/configure.old	2004-03-24 12:17:44.000000000 -0800
yann@1
     9
+++ gcc-2.95.3/gcc/configure	2004-03-24 12:19:30.000000000 -0800
yann@1
    10
@@ -2929,6 +2929,9 @@
yann@1
    11
 	i[34567]86-*-*)
yann@1
    12
 		cpu_type=i386
yann@1
    13
 		;;
yann@1
    14
+	x86_64-*-*)
yann@1
    15
+		cpu_type=i386
yann@1
    16
+		;;
yann@1
    17
 	hppa*-*-*)
yann@1
    18
 		cpu_type=pa
yann@1
    19
 		;;
yann@1
    20
@@ -3643,6 +3646,19 @@
yann@1
    21
  			thread_file='posix'
yann@1
    22
  		fi
yann@1
    23
 		;;
yann@1
    24
+	x86_64-*-linux*)
yann@1
    25
+		xmake_file=x-linux
yann@1
    26
+		tm_file="i386/biarch64.h i386/i386.h i386/att.h linux.h i386/x86-64.h \
yann@1
    27
+			 i386/linux64.h"
yann@1
    28
+		tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
yann@1
    29
+		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
yann@1
    30
+		gnu_ld=yes
yann@1
    31
+		float_format=i386
yann@1
    32
+		if test x$enable_threads = xyes; then
yann@1
    33
+			thread_file='posix'
yann@1
    34
+		fi
yann@1
    35
+		;;
yann@1
    36
+
yann@1
    37
 	i[34567]86-*-gnu*)
yann@1
    38
 		float_format=i386
yann@1
    39
 		;;