Subject: port-sparc64/14095: assigning return value of strlen() to double fails
To: None <gnats-bugs@gnats.netbsd.org>
From: None <taya@ba2.so-net.ne.jp>
List: netbsd-bugs
Date: 09/29/2001 22:46:11
>Number: 14095
>Category: port-sparc64
>Synopsis: assigning return value of strlen() to double fails
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: port-sparc64-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Sep 29 06:47:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Shin'ichiro TAYA
>Release: Sep.28, 2001
>Organization:
--
Shin'ichiro TAYA <taya@ba2.so-net.ne.jp>
>Environment:
System: NetBSD turtle13.m2g.org 1.5Y NetBSD 1.5Y (BLADE100) #1: Sun Sep 30 19:32:07 JST 2001 taya@turtle13.m2g.org:/export/NetBSD/NetBSD-current/src/sys/arch/sparc64/compile/BLADE100 sparc64
Architecture: sparc64
Machine: sparc64
>Description:
Assigning return value of strlen() to double fails.
Because of this bug, awk doesn't work correctly.
And this leads build failure of libedit.
>How-To-Repeat:
% cat a.c
#include <stdio.h>
main()
{
double u;
u = strlen("abc");
printf("u = %g\n", u);
}
% cc a.c
% ./a.out
u = 1.4822e-323
%
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: