From owner-freebsd-current Thu Mar 14 10:22:17 2002 Delivered-To: freebsd-current@freebsd.org Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by hub.freebsd.org (Postfix) with ESMTP id 9AB7637B405; Thu, 14 Mar 2002 10:21:52 -0800 (PST) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.11.6/8.11.4) id g2EILpK15358; Thu, 14 Mar 2002 10:21:51 -0800 (PST) (envelope-from sgk) Date: Thu, 14 Mar 2002 10:21:50 -0800 From: Steve Kargl To: "ozan s. yigit" Cc: current@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: gcc -O broken in CURRENT Message-ID: <20020314102150.A6572@troutmask.apl.washington.edu> References: <200203141759.g2EHxVO08409@zonzorp.canada.sun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i 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 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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