crosstool-ng/patches/uClibc/20080801/300-fix-asm.patch
Yann E. MORIN" 140d179eb3 Update all samples to the latest set of options.
Update some samples to use newer features.
Add patches for the uClibc-20080801 snapshot to be able to build with gcc-4.3.
Add a patch against glibc-2.7 to allow building PPC with latest kernel headers.
Add a patch to gcc to use an alternate unwinding when built against uClibc (after a private explanation/request by Daniel Egger <daniel@eggers-club.de>)

 /trunk/patches/glibc/2.7/230-powerpc-private_futex.patch          |   15    15     0     0 +
 /trunk/patches/uClibc/20080801/300-fix-asm.patch                  |  175   175     0     0 +++++++++
 /trunk/patches/uClibc/20080801/100-ifaddrs.patch                  |  190   190     0     0 +++++++++
 /trunk/patches/uClibc/20080801/200-mips-typeof.patch              |  112   112     0     0 ++++++
 /trunk/patches/gcc/4.3.1/330-unwind-for-uClibc.patch              |   25    25     0     0 +
 /trunk/samples/x86_64-unknown-linux-gnu/crosstool.config          |   17    10     7     0 +
 /trunk/samples/armeb-unknown-linux-uclibc/crosstool.config        |    7     5     2     0 +
 /trunk/samples/arm-unknown-linux-gnueabi/crosstool.config         |    7     5     2     0 +
 /trunk/samples/ia64-unknown-linux-gnu/crosstool.config            |   14    11     3     0 +
 /trunk/samples/x86_64-unknown-linux-uclibc/uClibc-20080801.config |  232   232     0     0 ++++++++++++
 /trunk/samples/x86_64-unknown-linux-uclibc/crosstool.config       |   34    21    13     0 +-
 /trunk/samples/i686-nptl-linux-gnu/crosstool.config               |   10     7     3     0 +
 /trunk/samples/powerpc-unknown-linux-gnu/crosstool.config         |   12     9     3     0 +
 /trunk/samples/mips-unknown-linux-uclibc/uClibc-20080801.config   |  249   249     0     0 ++++++++++++
 /trunk/samples/mips-unknown-linux-uclibc/crosstool.config         |   38    23    15     0 +-
 /trunk/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config   |   14    10     4     0 +
 /trunk/samples/armeb-unknown-linux-gnu/crosstool.config           |    7     5     2     0 +
 /trunk/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config   |   12     9     3     0 +
 /trunk/samples/arm-unknown-linux-uclibc/crosstool.config          |    7     5     2     0 +
 /trunk/samples/i586-geode-linux-uclibc/uClibc-20080801.config     |  261   261     0     0 +++++++++++++
 /trunk/samples/i586-geode-linux-uclibc/crosstool.config           |   32    20    12     0 ++
 /trunk/samples/powerpc-unknown-linux-uclibc/crosstool.config      |   12     9     3     0 +
 /trunk/samples/mipsel-unknown-linux-gnu/crosstool.config          |    7     5     2     0 +
 /trunk/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config |    7     5     2     0 +
 /trunk/samples/alphaev56-unknown-linux-gnu/crosstool.config       |   16    10     6     0 +
 25 files changed, 1428 insertions(+), 84 deletions(-)
2008-08-07 14:05:47 +00:00

176 lines
6.6 KiB
Diff

Index: uClibc/ldso/ldso/sparc/dl-sysdep.h
===================================================================
--- uClibc/ldso/ldso/sparc/dl-sysdep.h (revision 23055)
+++ uClibc/ldso/ldso/sparc/dl-sysdep.h (working copy)
@@ -141,7 +141,7 @@
static __inline__ Elf32_Addr
elf_machine_load_address (void)
{
- register Elf32_Addr *pc __asm__ ("%o7"), *got __asm ("%l7");
+ register Elf32_Addr *pc __asm__ ("%o7"), *got __asm__ ("%l7");
__asm__ ("sethi %%hi(_GLOBAL_OFFSET_TABLE_-4), %1\n\t"
"call 1f\n\t"
Index: uClibc/libc/sysdeps/linux/i386/bits/mathinline.h
===================================================================
--- uClibc/libc/sysdeps/linux/i386/bits/mathinline.h (revision 23055)
+++ uClibc/libc/sysdeps/linux/i386/bits/mathinline.h (working copy)
@@ -299,12 +299,12 @@
__extension__ long long int __p = (long long int) __x; \
if (__x == (long double) __p) \
{ \
- __asm __volatile__ \
+ __asm__ __volatile__ \
("fscale" \
: "=t" (__value) : "0" (1.0), "u" (__x)); \
return __value; \
} \
- __asm __volatile__ \
+ __asm__ __volatile__ \
("fld %%st(0)\n\t" \
"frndint # int(x)\n\t" \
"fxch\n\t" \
@@ -312,7 +312,7 @@
"f2xm1 # 2^(fract(x)) - 1\n\t" \
: "=t" (__value), "=u" (__exponent) : "0" (__x)); \
__value += 1.0; \
- __asm __volatile__ \
+ __asm__ __volatile__ \
("fscale" \
: "=t" (__value) : "0" (__value), "u" (__exponent)); \
return __value)
@@ -321,7 +321,7 @@
# define __sincos_code \
register long double __cosr; \
register long double __sinr; \
- __asm __volatile__ \
+ __asm__ __volatile__ \
("fsincos\n\t" \
"fnstsw %%ax\n\t" \
"testl $0x400, %%eax\n\t" \
@@ -373,7 +373,7 @@
register long double __value; \
register long double __exponent; \
register long double __temp; \
- __asm __volatile__ \
+ __asm__ __volatile__ \
("fldl2e # e^x - 1 = 2^(x * log2(e)) - 1\n\t" \
"fmul %%st(1) # x * log2(e)\n\t" \
"fst %%st(1)\n\t" \
@@ -383,7 +383,7 @@
"f2xm1 # 2^(fract(x * log2(e))) - 1\n\t" \
"fscale # 2^(x * log2(e)) - 2^(int(x * log2(e)))\n\t" \
: "=t" (__value), "=u" (__exponent) : "0" (__x)); \
- __asm __volatile__ \
+ __asm__ __volatile__ \
("fscale # 2^int(x * log2(e))\n\t" \
: "=t" (__temp) : "0" (1.0), "u" (__exponent)); \
__temp -= 1.0; \
@@ -398,7 +398,7 @@
# define __exp_code \
register long double __value; \
register long double __exponent; \
- __asm __volatile__ \
+ __asm__ __volatile__ \
("fldl2e # e^x = 2^(x * log2(e))\n\t" \
"fmul %%st(1) # x * log2(e)\n\t" \
"fst %%st(1)\n\t" \
@@ -408,7 +408,7 @@
"f2xm1 # 2^(fract(x * log2(e))) - 1\n\t" \
: "=t" (__value), "=u" (__exponent) : "0" (__x)); \
__value += 1.0; \
- __asm __volatile__ \
+ __asm__ __volatile__ \
("fscale" \
: "=t" (__value) : "0" (__value), "u" (__exponent)); \
return __value
@@ -421,7 +421,7 @@
__inline_mathcodeNP (tan, __x, \
register long double __value; \
register long double __value2 __attribute__ ((__unused__)); \
- __asm __volatile__ \
+ __asm__ __volatile__ \
("fptan" \
: "=t" (__value2), "=u" (__value) : "0" (__x)); \
return __value)
@@ -435,7 +435,7 @@
#else
# define __atan2_code \
register long double __value; \
- __asm __volatile__ \
+ __asm__ __volatile__ \
("fpatan" \
: "=t" (__value) : "0" (__x), "u" (__y) : "st(1)"); \
return __value
@@ -449,7 +449,7 @@
#if defined __FAST_MATH__ && !__GNUC_PREREQ (3, 5)
__inline_mathcodeNP2 (fmod, __x, __y, \
register long double __value; \
- __asm __volatile__ \
+ __asm__ __volatile__ \
("1: fprem\n\t" \
"fnstsw %%ax\n\t" \
"sahf\n\t" \
@@ -552,7 +552,7 @@
#ifdef __FAST_MATH__
# define __ldexp_code \
register long double __value; \
- __asm __volatile__ \
+ __asm__ __volatile__ \
("fscale" \
: "=t" (__value) : "0" (__x), "u" ((long double) __y)); \
return __value
@@ -581,7 +581,7 @@
if (__fabsl (__x) >= 1.0 - 0.5 * __M_SQRT2) \
__value = logl (1.0 + __x); \
else \
- __asm __volatile__ \
+ __asm__ __volatile__ \
("fldln2\n\t" \
"fxch\n\t" \
"fyl2xp1" \
@@ -611,7 +611,7 @@
__inline_mathcodeNP(logb, __x, \
register long double __value; \
register long double __junk; \
- __asm __volatile__ \
+ __asm__ __volatile__ \
("fxtract\n\t" \
: "=t" (__junk), "=u" (__value) : "0" (__x)); \
return __value)
@@ -699,7 +699,7 @@
__inline_mathcodeNP2 (drem, __x, __y, \
register double __value; \
register int __clobbered; \
- __asm __volatile__ \
+ __asm__ __volatile__ \
("1: fprem1\n\t" \
"fstsw %%ax\n\t" \
"sahf\n\t" \
Index: uClibc/libc/sysdeps/linux/x86_64/sigaction.c
===================================================================
--- uClibc/libc/sysdeps/linux/x86_64/sigaction.c (revision 23055)
+++ uClibc/libc/sysdeps/linux/x86_64/sigaction.c (working copy)
@@ -135,7 +135,7 @@
#define RESTORE(name, syscall) RESTORE2 (name, syscall)
# define RESTORE2(name, syscall) \
-asm \
+__asm__ \
( \
".text\n" \
"__" #name ":\n" \
Index: uClibc/libc/sysdeps/linux/mips/sigaction.c
===================================================================
--- uClibc/libc/sysdeps/linux/mips/sigaction.c (revision 23055)
+++ uClibc/libc/sysdeps/linux/mips/sigaction.c (working copy)
@@ -140,7 +140,7 @@
#define RESTORE(name, syscall) RESTORE2 (name, syscall)
#define RESTORE2(name, syscall) \
-asm \
+__asm__ \
( \
".align 4\n" \
"__" #name ":\n" \