Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 2004 10:51:17 -0600 (CST)
From:      Dan Nelson <dnelson@allantgroup.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   sparc64/73782: libc is missing the _Qp_cmp function
Message-ID:  <200411101651.iAAGpHDM020752@dan.emsphone.com>
Resent-Message-ID: <200411101700.iAAH0e1L087403@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411101651.iAAGpHDM020752>