Subject: gcc/vfprintf wierdness
To: None <port-pmax@NetBSD.ORG>
From: Simon Burge <simonb@telstra.com.au>
List: port-pmax
Date: 02/01/1996 09:27:51
I thought I'd be brave and do a complete build with the gcc that's in
the source tree now, and I'm getting some really wierd floating point
problems.  I first noticed the problem with df - the output looks
something like this:

Filesystem       1K-blocks     Used    Avail Capacity  Mounted on
/dev/rz0a            31453    15451    14429 -130765130326886309632683727683765395736235912447032336711144702809424275026618678798621044860872953911283000475197896207516055235441287180384736052502788460750275775251887080606932525684703077392859102175767734585941770678185841343570312309963472091234954689173967637868150984813477625856%    /

A little bit of playing around shows that vfprintf seems to have no
idea on how to print a floating point number.  I _think_ that gcc's
math is ok, but I'm not 100% sure.

I haven't started to really look at the problem yet - I was wondering
if anyone else has seen this behavior before I start looking...

Simon.
--
Simon Burge						simonb@telstra.com.au
UNIX Support, CPR Project, Telstra.			+61 3 9634 3974
-------------------------------------------------------------------------------
I've got a can opener at home.  Sometimes it works, and other times it doesn't.
Sometimes it only goes half-way around, and then does a lap of honor - Jimeoin.