Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 2002 10:21:50 -0800
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        "ozan s. yigit" <oz@scot.canada.sun.com>
Cc:        current@FreeBSD.ORG, hackers@FreeBSD.ORG
Subject:   Re: gcc -O broken in CURRENT
Message-ID:  <20020314102150.A6572@troutmask.apl.washington.edu>
In-Reply-To: <200203141759.g2EHxVO08409@zonzorp.canada.sun.com>; from oz@scot.canada.sun.com on Thu, Mar 14, 2002 at 12:59:31PM -0500
References:  <200203141759.g2EHxVO08409@zonzorp.canada.sun.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 14, 2002 at 12:59:31PM -0500, ozan s. yigit wrote:
> in a related tangential note, i recently found (out of sheer irritation)
> in less than an hour that several (including the latest) versions of GCC
>  -O and -O2 failed the paranoia test in different ways, to wit:
> 
> gcc -o paranoia paranoia.c
> 
> The number of  DEFECTs  discovered =         1.
> The number of  FLAWs  discovered =           1.
> 
> gcc -O2 -o paranoia paranoia.c
> 
> The number of  FAILUREs  encountered =       4.
> The number of  SERIOUS DEFECTs  discovered = 4.
> The number of  DEFECTs  discovered =         2.
> The number of  FLAWs  discovered =           2.
> 
> i assume everyone knows about kahan and paranoia. if not see netlib.
> 

Add the -ffloat-store flag to your compilation flags (or
add -msoft-float).

No failures, defects nor flaws have been discovered.
Rounding appears to conform to the proposed IEEE standard P754,
except for possibly Double Rounding during Gradual Underflow.
The arithmetic diagnosed appears to be Excellent!
END OF TEST.

-- 
Steve

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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