patches/glibc/2.3.2/glibc-2.3.2-pr139-fix.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
2004-04-29  Jakub Jelinek  <jakub@redhat.com>
yann@1
     2
yann@1
     3
	* sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
yann@1
     4
	for single precision register, add it to __asm clobbers [BZ #139].
yann@1
     5
	* sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
yann@1
     6
	for single precision register, add it to __asm clobbers.
yann@1
     7
	* sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
yann@1
     8
	instead of fqtoi in QP_HANDLE_EXCEPTIONS.
yann@1
     9
	* sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
yann@1
    10
	Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
yann@1
    11
yann@1
    12
See http://sources.redhat.com/bugzilla/show_bug.cgi?id=139
yann@1
    13
Fixes error
yann@1
    14
qp_qtoi.s:261: Error: Illegal operands: There are only 32 single precision f registers; [0-31]
yann@1
    15
plus a couple other things vanl noticed.
yann@1
    16
yann@1
    17
diff -ur orig/qp_qtoi.c new/qp_qtoi.c
yann@1
    18
--- orig/qp_qtoi.c	Sat May  1 00:40:06 2004
yann@1
    19
+++ libc/sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c	Sat May  1 00:39:40 2004
yann@1
    20
@@ -1,6 +1,6 @@
yann@1
    21
 /* Software floating-point emulation.
yann@1
    22
    Return (int)(*a)
yann@1
    23
-   Copyright (C) 1997,1999 Free Software Foundation, Inc.
yann@1
    24
+   Copyright (C) 1997, 1999, 2004 Free Software Foundation, Inc.
yann@1
    25
    This file is part of the GNU C Library.
yann@1
    26
    Contributed by Richard Henderson (rth@cygnus.com) and
yann@1
    27
 		  Jakub Jelinek (jj@ultra.linux.cz).
yann@1
    28
@@ -38,9 +38,9 @@
yann@1
    29
   	__asm (
yann@1
    30
 "	ldd [%1], %%f52\n"
yann@1
    31
 "	ldd [%1+8], %%f54\n"
yann@1
    32
-"	fqtoi %%f52, %%f60\n"
yann@1
    33
-"	st %%f60, [%0]\n"
yann@1
    34
-"	" : : "r" (&rx), "r" (a) : QP_CLOBBER);
yann@1
    35
+"	fqtoi %%f52, %%f31\n"
yann@1
    36
+"	st %%f31, [%0]\n"
yann@1
    37
+"	" : : "r" (&rx), "r" (a) : QP_CLOBBER, "f31");
yann@1
    38
 	r = rx);
yann@1
    39
 
yann@1
    40
   return r;
yann@1
    41
diff -ur orig/qp_qtoui.c new/qp_qtoui.c
yann@1
    42
--- orig/qp_qtoui.c	Sat May  1 00:40:06 2004
yann@1
    43
+++ libc/sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c	Sat May  1 00:39:40 2004
yann@1
    44
@@ -1,6 +1,6 @@
yann@1
    45
 /* Software floating-point emulation.
yann@1
    46
    Return (unsigned int)(*a)
yann@1
    47
-   Copyright (C) 1997,1999 Free Software Foundation, Inc.
yann@1
    48
+   Copyright (C) 1997, 1999, 2004 Free Software Foundation, Inc.
yann@1
    49
    This file is part of the GNU C Library.
yann@1
    50
    Contributed by Richard Henderson (rth@cygnus.com) and
yann@1
    51
 		  Jakub Jelinek (jj@ultra.linux.cz).
yann@1
    52
@@ -38,9 +38,9 @@
yann@1
    53
   	__asm (
yann@1
    54
 "	ldd [%1], %%f52\n"
yann@1
    55
 "	ldd [%1+8], %%f54\n"
yann@1
    56
-"	fqtoi %%f52, %%f60\n"
yann@1
    57
-"	st %%f60, [%0]\n"
yann@1
    58
-"	" : : "r" (&rx), "r" (a) : QP_CLOBBER);
yann@1
    59
+"	fqtoi %%f52, %%f31\n"
yann@1
    60
+"	st %%f31, [%0]\n"
yann@1
    61
+"	" : : "r" (&rx), "r" (a) : QP_CLOBBER, "f31");
yann@1
    62
 	r = rx);
yann@1
    63
 
yann@1
    64
   return r;
yann@1
    65
diff -ur orig/qp_qtoux.c new/qp_qtoux.c
yann@1
    66
--- orig/qp_qtoux.c	Sat May  1 00:40:06 2004
yann@1
    67
+++ libc/sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c	Sat May  1 00:39:40 2004
yann@1
    68
@@ -1,6 +1,6 @@
yann@1
    69
 /* Software floating-point emulation.
yann@1
    70
    Return (unsigned long)(*a)
yann@1
    71
-   Copyright (C) 1997,1999 Free Software Foundation, Inc.
yann@1
    72
+   Copyright (C) 1997, 1999, 2004 Free Software Foundation, Inc.
yann@1
    73
    This file is part of the GNU C Library.
yann@1
    74
    Contributed by Richard Henderson (rth@cygnus.com) and
yann@1
    75
 		  Jakub Jelinek (jj@ultra.linux.cz).
yann@1
    76
@@ -38,7 +38,7 @@
yann@1
    77
   	__asm (
yann@1
    78
 "	ldd [%1], %%f52\n"
yann@1
    79
 "	ldd [%1+8], %%f54\n"
yann@1
    80
-"	fqtoi %%f52, %%f60\n"
yann@1
    81
+"	fqtox %%f52, %%f60\n"
yann@1
    82
 "	std %%f60, [%0]\n"
yann@1
    83
 "	" : : "r" (&rx), "r" (a) : QP_CLOBBER);
yann@1
    84
 	r = rx);
yann@1
    85
diff -ur orig/qp_qtox.c new/qp_qtox.c
yann@1
    86
--- orig/qp_qtox.c	Sat May  1 00:40:06 2004
yann@1
    87
+++ libc/sysdeps/sparc/sparc64/soft-fp/qp_qtox.c	Sat May  1 00:39:40 2004
yann@1
    88
@@ -1,6 +1,6 @@
yann@1
    89
 /* Software floating-point emulation.
yann@1
    90
    Return (long)(*a)
yann@1
    91
-   Copyright (C) 1997,1999 Free Software Foundation, Inc.
yann@1
    92
+   Copyright (C) 1997, 1999, 2004 Free Software Foundation, Inc.
yann@1
    93
    This file is part of the GNU C Library.
yann@1
    94
    Contributed by Richard Henderson (rth@cygnus.com) and
yann@1
    95
 		  Jakub Jelinek (jj@ultra.linux.cz).
yann@1
    96
@@ -38,7 +38,7 @@
yann@1
    97
   	__asm (
yann@1
    98
 "	ldd [%1], %%f52\n"
yann@1
    99
 "	ldd [%1+8], %%f54\n"
yann@1
   100
-"	fqtoi %%f52, %%f60\n"
yann@1
   101
+"	fqtox %%f52, %%f60\n"
yann@1
   102
 "	std %%f60, [%0]\n"
yann@1
   103
 "	" : : "r" (&rx), "r" (a) : QP_CLOBBER);
yann@1
   104
 	r = rx);