sparc64/73782: libc is missing the _Qp_cmp function

Dan Nelson dnelson at allantgroup.com
Wed Nov 10 09:00:41 PST 2004


>Number:         73782
>Category:       sparc64
>Synopsis:       libc is missing the _Qp_cmp function
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-sparc64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 10 17:00:40 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Dan Nelson
>Release:        FreeBSD 5.3-RELEASE sparc64
>Organization:
The Allant Group
>Environment:


	
>Description:

gcc will generate calls to _Qp_cmp when doing some long-double math
operations.  I don't know exactly what C code triggers it, but pike 7.6
configured with --with-long-double-precisionfails to link because it
can't find _Qp_cmp.

	
>How-To-Repeat:

I'm reporting this secondhand, but downloading
http://pike.ida.liu.se/pub/pike/latest-stable/Pike-v7.6.24.tar.gz and
running "make CONFIGUREARGS=--with-long-double-precision" should be
enough to trigger it.

	
>Fix:

Add _Qp_cmp support to /usr/src/lib/libc/sparc64/fpu/fpu_qp.c .  NetBSD
has working code (although a different way of going about it) at
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/arch/sparc64/softfloat/qp.c
, and the official description of the function is at
http://www.sparc.com/standards/SCD.2.4.1.ps (although I can't seem to
get to it right now)

	


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-sparc64 mailing list