[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#266598: More info on Sparc FTBFS for glibc



At Mon, 4 Oct 2004 23:17:26 -0700,
Joshua Kwan wrote:
> (CC: James for some binutils insights. This is about #266958)
> 
> I've attached the assembly source from failed build of qp_qtoi.c, which
> is the place the glibc build chokes on this time. It dies here:
> 
> 	fqtoi %f52, %f60
> 	st %f60, [%o4]
> 
> which causes

I'm sorry I don't tell you about this issue.  I already knew this part
is problem from August, but I don't check the sparc instruction set.
Look at the below code:

> 	brz,pt	%o2, .LL96
> 	sll	%o4, 5, %g1
> 	add	%sp, 2227, %o4
> .LLBB6:
> 		ldd [%o3], %f52		<- this
> 	ldd [%o3+8], %f54
> 	fqtoi %f52, %f60
> 	st %f60, [%o4]
> 	
> 	ba,pt	%xcc, .LL95
> 	lduw	[%sp+2227], %g3

Some code are from glibc hand asm code.  The binutils error is
correct, %f60 is inappropriate for this instruction.  The previous
binutils ignores %f60 and reassign it to other registers.  Now the
behavior is changed in 2.15.  

Jakub already fixed in the latest glibc cvs.  It can be just fixed
patching to glibc.  I'll fix it in -18.

Regards,
-- gotom



Reply to: