patches/glibc/2.5/130-i686-assembler.patch
author Matthieu Crapet <mcrapet@gmail.com>
Wed Jun 06 12:03:12 2012 +0200 (2012-06-06)
changeset 2991 252ade1e9e17
parent 744 4bf8448536d5
permissions -rw-r--r--
libc/eglibc: fix missing LIBC_TRY_CC_OPTION definition (eglibc 2.15)

Upstream SVN is currently broken:
http://www.eglibc.org/svn/branches/eglibc-2_15/libc/

LIBC_TRY_CC_OPTION macro is not defined in aclocal.m4.
This patch fix the configure script.

Once upstream branch will be fixed this patch could be reverted.

Related patch (committed to eglibc trunk):
Use autoconf macro for testing compiler options with empty input
http://sourceware.org/ml/libc-alpha/2012-03/msg00816.html

Signed-off-by: Matthieu Crapet <mcrapet@gmail.com>

diff -r 1f6c8e4b2b92 -r d10afc5bcc25
patches/eglibc/2_15/110-aclocal-LIBC_TRY_CC_OPTION.patch
yann@402
     1
2007-02-15  Khem Raj  <kraj@xxxxxxxxxx>
yann@402
     2
yann@402
     3
       * sysdeps/unix/sysv/linux/i386/sysdep.h: Re-define __i686.
yann@402
     4
       * nptl/sysdeps/pthread/pt-initfini.c: Ditto.
yann@402
     5
yann@402
     6
yann@402
     7
yann@402
     8
Index: glibc-2.4/sysdeps/unix/sysv/linux/i386/sysdep.h
yann@402
     9
===================================================================
yann@402
    10
--- glibc-2.4/sysdeps/unix/sysv/linux/i386/sysdep.h	(revision 1469)
yann@402
    11
+++ glibc-2.4/sysdeps/unix/sysv/linux/i386/sysdep.h	(working copy)
yann@402
    12
@@ -29,6 +29,10 @@
yann@402
    13
 #include <dl-sysdep.h>
yann@402
    14
 #include <tls.h>
yann@402
    15
 
yann@402
    16
+#if defined __i686 && defined __ASSEMBLER__
yann@402
    17
+#undef __i686
yann@402
    18
+#define __i686 __i686
yann@402
    19
+#endif
yann@402
    20
 
yann@402
    21
 /* For Linux we can use the system call table in the header file
yann@402
    22
 	/usr/include/asm/unistd.h
yann@402
    23
Index: glibc-2.4/nptl/sysdeps/pthread/pt-initfini.c
yann@402
    24
===================================================================
yann@402
    25
--- glibc-2.4/nptl/sysdeps/pthread/pt-initfini.c	(revision 1469)
yann@402
    26
+++ glibc-2.4/nptl/sysdeps/pthread/pt-initfini.c	(working copy)
yann@402
    27
@@ -45,6 +45,11 @@
yann@402
    28
 /* Embed an #include to pull in the alignment and .end directives. */
yann@402
    29
 asm ("\n#include \"defs.h\"");
yann@402
    30
 
yann@402
    31
+asm ("\n#if defined __i686 && defined __ASSEMBLER__");
yann@402
    32
+asm ("\n#undef __i686");
yann@402
    33
+asm ("\n#define __i686 __i686");
yann@402
    34
+asm ("\n#endif");
yann@402
    35
+
yann@402
    36
 /* The initial common code ends here. */
yann@402
    37
 asm ("\n/*@HEADER_ENDS*/");
yann@402
    38