wok-current annotate glibc/stuff/glibc-2.13-gcc_fix-1.patch @ rev 19902
Up: db (6.2.23)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sat Apr 08 22:00:16 2017 +0000 (2017-04-08) |
parents | c906b3acf847 |
children |
rev | line source |
---|---|
gokhlayeh@8189 | 1 Submitted By: Matt Burgess <matthew_at_linuxfromscratch_dot_org> |
gokhlayeh@8189 | 2 Date: 2010-04-18 |
gokhlayeh@8189 | 3 Initial Package Version: 2.11.1 |
gokhlayeh@8189 | 4 Upstream Status: Not Submitted |
gokhlayeh@8189 | 5 Origin: http://www.eglibc.org/archives/patches/msg00073.html |
gokhlayeh@8189 | 6 Description: Fixes the following build problem with GCC-4.5.0: |
gokhlayeh@8189 | 7 |
gokhlayeh@8189 | 8 /mnt/lfs/sources/libc-build/math/s_frexp.os.dt -MT /mnt/lfs/sources/libc-build/math/s_frexp.os |
gokhlayeh@8189 | 9 ./sysdeps/i386/fpu/s_frexp.S: Assembler messages: |
gokhlayeh@8189 | 10 ./sysdeps/i386/fpu/s_frexp.S:66: Error: invalid identifier for ".ifdef" |
gokhlayeh@8189 | 11 ./sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first unrecognized character is `1' |
gokhlayeh@8189 | 12 ./sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first unrecognized character is `1' |
gokhlayeh@8189 | 13 ./sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first unrecognized character is `1' |
gokhlayeh@8189 | 14 ./sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first unrecognized character is `.' |
gokhlayeh@8189 | 15 ./sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of line, first unrecognized character is `1' |
gokhlayeh@8189 | 16 ./sysdeps/i386/fpu/s_frexp.S:66: Error: expected comma after name `' in .size directive |
gokhlayeh@8189 | 17 ./sysdeps/i386/fpu/s_frexp.S:66: Error: ".endif" without ".if" |
gokhlayeh@8189 | 18 ./sysdeps/i386/fpu/s_frexp.S:66: Error: junk `.get_pc_thunk.dx' after expression |
gokhlayeh@8189 | 19 make[2]: *** [/mnt/lfs/sources/libc-build/math/s_frexp.os] Error 1 |
gokhlayeh@8189 | 20 |
gokhlayeh@8189 | 21 diff -Naur glibc-2.11.1.orig/nptl/sysdeps/pthread/pt-initfini.c glibc-2.11.1/nptl/sysdeps/pthread/pt-initfini.c |
gokhlayeh@8189 | 22 --- glibc-2.11.1.orig/nptl/sysdeps/pthread/pt-initfini.c 2009-12-08 20:10:20.000000000 +0000 |
gokhlayeh@8189 | 23 +++ glibc-2.11.1/nptl/sysdeps/pthread/pt-initfini.c 2010-04-17 11:34:06.882681001 +0000 |
gokhlayeh@8189 | 24 @@ -45,6 +45,11 @@ |
gokhlayeh@8189 | 25 /* Embed an #include to pull in the alignment and .end directives. */ |
gokhlayeh@8189 | 26 asm ("\n#include \"defs.h\""); |
gokhlayeh@8189 | 27 |
gokhlayeh@8189 | 28 +asm ("\n#if defined __i686 && defined __ASSEMBLER__"); |
gokhlayeh@8189 | 29 +asm ("\n#undef __i686"); |
gokhlayeh@8189 | 30 +asm ("\n#define __i686 __i686"); |
gokhlayeh@8189 | 31 +asm ("\n#endif"); |
gokhlayeh@8189 | 32 + |
gokhlayeh@8189 | 33 /* The initial common code ends here. */ |
gokhlayeh@8189 | 34 asm ("\n/*@HEADER_ENDS*/"); |
gokhlayeh@8189 | 35 |
gokhlayeh@8189 | 36 diff -Naur glibc-2.11.1.orig/sysdeps/unix/sysv/linux/i386/sysdep.h glibc-2.11.1/sysdeps/unix/sysv/linux/i386/sysdep.h |
gokhlayeh@8189 | 37 --- glibc-2.11.1.orig/sysdeps/unix/sysv/linux/i386/sysdep.h 2009-12-08 20:10:20.000000000 +0000 |
gokhlayeh@8189 | 38 +++ glibc-2.11.1/sysdeps/unix/sysv/linux/i386/sysdep.h 2010-04-17 11:34:06.882681001 +0000 |
gokhlayeh@8189 | 39 @@ -29,6 +29,10 @@ |
gokhlayeh@8189 | 40 #include <dl-sysdep.h> |
gokhlayeh@8189 | 41 #include <tls.h> |
gokhlayeh@8189 | 42 |
gokhlayeh@8189 | 43 +#if defined __i686 && defined __ASSEMBLER__ |
gokhlayeh@8189 | 44 +#undef __i686 |
gokhlayeh@8189 | 45 +#define __i686 __i686 |
gokhlayeh@8189 | 46 +#endif |
gokhlayeh@8189 | 47 |
gokhlayeh@8189 | 48 /* For Linux we can use the system call table in the header file |
gokhlayeh@8189 | 49 /usr/include/asm/unistd.h |