This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem with libm ( cvs version of libc from 12/12/98 ), and egcs


There seems to be problems with asm when using optimization. I'm sending
this to the libc list because this looks like the same sort of problems
that the Linux kernel was having, and the egcs people blame it on the
kernel source. So I am sending this to you in case they say "It's libc's
fault."

== egcs version ======================================================
Reading specs from /usr/lib/gcc-lib/i486-pc-linux-gnu/egcs-2.92.29/specs
gcc version egcs-2.92.29 19981217 (gcc2 ss-980609 experimental)

== Linux version =====================================================
Linux localhost 2.1.131 #2 Tue Dec 15 20:11:11 PST 1998 i486 unknown

== binutils version ==================================================
2.9.1.0.16

======================================================================
While trying to compile libm get: ( The compilation actually fails before
here, but I manually compile a couple of files by removing "-O2" ).

make[2]: Nothing to be done for `others'.
make[2]: Leaving directory `/usr/src1/CVS/SOURCEWARE/libc/intl'
make  -C catgets others
make[2]: Entering directory `/usr/src1/CVS/SOURCEWARE/libc/catgets'
make[2]: Nothing to be done for `others'.
make[2]: Leaving directory `/usr/src1/CVS/SOURCEWARE/libc/catgets'
make  -C math others
make[2]: Entering directory `/usr/src1/CVS/SOURCEWARE/libc/math'
gcc ../sysdeps/libm-ieee754/s_ctanf.c -c -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -g1     -Wno-uninitialized 
-Wno-write-strings  -I../include -I. -I/usr/local/src/glibc/build/math 
-I.. -I../libio  -I/usr/local/src/glibc/build -I../sysdeps/i386/elf 
-I../crypt/sysdeps/unix -I../linuxthreads/sysdeps/unix/sysv/linux 
-I../linuxthreads/sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv 
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386 
-I../linuxthreads/sysdeps/pthread/no-cmpxchg -I../sysdeps/unix/sysv/linux/i386
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common 
-I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix 
-I../sysdeps/posix -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu 
-I../sysdeps/libm-i387 -I../sysdeps/i386 -I../sysdeps/wordsize-32 
-I../sysdeps/ieee754 -I../sysdeps/libm-ieee754 -I../sysdeps/generic/elf 
-I../sysdeps/generic  -nostdinc -isystem /usr/lib/gcc-lib/i486-pc-linux-gnu/egcs-2.92.29/include -isystem /usr/src/linux/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h     -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -o /usr/local/src/glibc/build/math/s_ctanf.o
../sysdeps/libm-ieee754/s_ctanf.c: In function `__ctanf':
../sysdeps/libm-ieee754/s_ctanf.c:69: fixed or forbidden register 0 (ax) was spilled for class AREG.
../sysdeps/libm-ieee754/s_ctanf.c:69: This may be due to a compiler bug or to impossible asm
../sysdeps/libm-ieee754/s_ctanf.c:69: statements or clauses.
../sysdeps/libm-ieee754/s_ctanf.c:69: This is the instruction:
(insn 94 92 95 (parallel[ 
            (set (cc0)
                (compare:CCFPEQ (reg:DF 9 %st(1))
                    (reg:DF 8 %st(0))))
            (clobber (scratch:HI))
        ] ) 32 {*cmpsf_cc_1-1} (insn_list 89 (insn_list 92 (nil)))
    (expr_list:REG_DEAD (reg:DF 9 %st(1))
        (expr_list:REG_DEAD (reg:DF 8 %st(0))
            (expr_list:REG_UNUSED (scratch:HI)
                (nil)))))
/usr/src1/CVS/EGCS/egcs/gcc/toplev.c:1397: Internal compiler error in function fatal_insn
make[2]: *** [/usr/local/src/glibc/build/math/s_ctanf.o] Error 1
make[2]: Leaving directory `/usr/src1/CVS/SOURCEWARE/libc/math'
make[1]: *** [math/others] Error 2
make[1]: Leaving directory `/usr/src1/CVS/SOURCEWARE/libc'
make: *** [all] Error 2

-- 
Richard Ketchersid, 816 Evans  _/_/   _/_/
UC Berkeley, Logic Group      _/_/_/  _/ _/         
Office Hours: W/F 10-11      _/    _/ _/_/    




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]