[uClibc-cvs] uClibc/libc/sysdeps/linux/powerpc setjmp.S, 1.4, 1.5 __longjmp.S, 1.1, 1.2

Erik Andersen andersen at uclibc.org
Thu Jul 3 10:40:21 UTC 2003


Update of /var/cvs/uClibc/libc/sysdeps/linux/powerpc
In directory winder:/tmp/cvs-serv28192/libc/sysdeps/linux/powerpc

Modified Files:
	setjmp.S __longjmp.S 
Log Message:
As noted by Felix Radensky back on 16 Mar:

    I've tried several times to compile uClibc with soft-float
    (both gcc-3.2.2 toolchain and wrapper), but applications
    compiled with uClibc always failed with "Invalid instruction".
    So I ended up disabling floating point at all and this works well.
    I also has no problem with glibc from Monta Vista, which is
    compiled with soft-float. My processor is PowerPC 405GP.

    Maybe the problem is in FP() macro definition in
    libc/sysdeps/linux/powerpc/setjmp.S and
    libc/sysdeps/linux/powerpc/__longjmp.S

    #ifdef __UCLIBC_HAS_FLOATS__
    #define FP(x...) x
    #else
    #define FP(x...)
    #endif

    which should be defined as

    if defined __UCLIBC_HAS_FLOATS__ && ! defined __UCLIBC_HAS_SOFT_FLOAT__
    #define FP(x...) x
    #else
    #define FP(x...)
    #endif



Index: setjmp.S
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/powerpc/setjmp.S,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- setjmp.S	10 Apr 2002 07:20:20 -0000	1.4
+++ setjmp.S	3 Jul 2003 10:40:18 -0000	1.5
@@ -23,7 +23,7 @@
 #define _SETJMP_H
 #include <bits/setjmp.h>
 
-#ifdef __UCLIBC_HAS_FLOATS__
+#ifdef __UCLIBC_HAS_FLOATS__ && ! defined __UCLIBC_HAS_SOFT_FLOAT__
 #define FP(x...) x
 #else
 #define FP(x...)

Index: __longjmp.S
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/powerpc/__longjmp.S,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- __longjmp.S	4 Feb 2002 12:34:00 -0000	1.1
+++ __longjmp.S	3 Jul 2003 10:40:18 -0000	1.2
@@ -24,7 +24,7 @@
 #include <bits/setjmp.h>
 
 
-#ifdef __UCLIBC_HAS_FLOATS__
+#ifdef __UCLIBC_HAS_FLOATS__ && ! defined __UCLIBC_HAS_SOFT_FLOAT__
 #define FP(x...) x
 #else
 #define FP(x...)




More information about the uClibc-cvs mailing list