patches/glibc/2.3.6/glibc-2.3.5-allow-gcc-4.0-wordexp.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
yann@1
     1
../sysdeps/generic/wordexp.c: In function 'exec_comm':
yann@1
     2
../sysdeps/generic/wordexp.c:815: sorry, unimplemented: inlining failed in call to 'exec_comm_child': function body not available
yann@1
     3
../sysdeps/generic/wordexp.c:900: sorry, unimplemented: called from here
yann@1
     4
make[2]: *** [/home/dank/queue/jobdir.fast2/crosstool-dev/build/i686-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3-20050307/build-glibc/posix/wordexp.o] Error
yann@1
     5
yann@1
     6
I had to add the keyword 'inline' to get it to compile:
yann@1
     7
yann@1
     8
--- glibc-2.3-20050307/sysdeps/generic/wordexp.c.old	2005-03-12 08:54:15.709253928 -0800
yann@1
     9
+++ glibc-2.3-20050307/sysdeps/generic/wordexp.c	2005-03-12 08:54:51.242852000 -0800
yann@1
    10
@@ -809,7 +809,7 @@
yann@1
    11
 }
yann@1
    12
yann@1
    13
 /* Function called by child process in exec_comm() */
yann@1
    14
-static void
yann@1
    15
+static inline void
yann@1
    16
 internal_function __attribute__ ((always_inline))
yann@1
    17
 exec_comm_child (char *comm, int *fildes, int showerr, int noexec)
yann@1
    18
 {
yann@1
    19
yann@1
    20
yann@1
    21
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>