patches/glibc/2.3.2/glibc-2.3.2-allow-gcc-3.5-PR14096.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
--- glibc-2.3.2/stdlib/abs.c.old	2004-07-18 12:08:43.000000000 -0700
yann@1
     2
+++ glibc-2.3.2/stdlib/abs.c	2004-07-18 12:09:18.000000000 -0700
yann@1
     3
@@ -16,6 +16,8 @@
yann@1
     4
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
yann@1
     5
    02111-1307 USA.  */
yann@1
     6
 
yann@1
     7
+#define __NO_INLINE__ 1	/* avoid http://gcc.gnu.org/PR14096 */
yann@1
     8
+
yann@1
     9
 #include <stdlib.h>
yann@1
    10
 
yann@1
    11
 #undef	abs
yann@1
    12
--- glibc-2.3.2/stdlib/atoi.c.old	2004-07-18 12:08:17.000000000 -0700
yann@1
    13
+++ glibc-2.3.2/stdlib/atoi.c	2004-07-18 12:08:27.000000000 -0700
yann@1
    14
@@ -16,6 +16,8 @@
yann@1
    15
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
yann@1
    16
    02111-1307 USA.  */
yann@1
    17
 
yann@1
    18
+#define __NO_INLINE__ 1	/* avoid http://gcc.gnu.org/PR14096 */
yann@1
    19
+
yann@1
    20
 #include <stdlib.h>
yann@1
    21
 
yann@1
    22
 #undef	atoi
yann@1
    23
--- glibc-2.3.2/stdlib/atof.c.old	2004-07-18 12:06:09.000000000 -0700
yann@1
    24
+++ glibc-2.3.2/stdlib/atof.c	2004-07-18 12:05:31.000000000 -0700
yann@1
    25
@@ -16,6 +16,8 @@
yann@1
    26
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
yann@1
    27
    02111-1307 USA.  */
yann@1
    28
 
yann@1
    29
+#define __NO_INLINE__ 1	/* avoid http://gcc.gnu.org/PR14096 */
yann@1
    30
+
yann@1
    31
 #include <stdlib.h>
yann@1
    32
 
yann@1
    33
 #undef	atof
yann@1
    34
--- glibc-2.3.2/stdlib/atol.c.old	2004-07-18 12:08:49.000000000 -0700
yann@1
    35
+++ glibc-2.3.2/stdlib/atol.c	2004-07-18 12:09:40.000000000 -0700
yann@1
    36
@@ -16,6 +16,8 @@
yann@1
    37
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
yann@1
    38
    02111-1307 USA.  */
yann@1
    39
 
yann@1
    40
+#define __NO_INLINE__ 1	/* avoid http://gcc.gnu.org/PR14096 */
yann@1
    41
+
yann@1
    42
 #include <stdlib.h>
yann@1
    43
 
yann@1
    44
 #undef	atol
yann@1
    45
--- glibc-2.3.2/stdlib/atoll.c.old	2004-07-18 12:08:55.000000000 -0700
yann@1
    46
+++ glibc-2.3.2/stdlib/atoll.c	2004-07-18 12:09:59.000000000 -0700
yann@1
    47
@@ -16,6 +16,8 @@
yann@1
    48
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
yann@1
    49
    02111-1307 USA.  */
yann@1
    50
 
yann@1
    51
+#define __NO_INLINE__ 1	/* avoid http://gcc.gnu.org/PR14096 */
yann@1
    52
+
yann@1
    53
 #include <stdlib.h>
yann@1
    54
 
yann@1
    55
 #undef	atoll