From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11956 invoked by alias); 25 Jun 2002 17:46:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 11900 invoked by uid 71); 25 Jun 2002 17:46:02 -0000 Resent-Date: 25 Jun 2002 17:46:02 -0000 Resent-Message-ID: <20020625174602.11897.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, hanelyp@calweb.com Received: (qmail 8463 invoked by uid 61); 25 Jun 2002 17:37:42 -0000 Message-Id: <20020625173742.8462.qmail@sources.redhat.com> Date: Tue, 25 Jun 2002 11:16:00 -0000 From: hanelyp@calweb.com Reply-To: hanelyp@calweb.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: optimization/7122: -o2 processed floating point code generates bogus NaN X-SW-Source: 2002-06/txt/msg00595.txt.bz2 List-Id: >Number: 7122 >Category: optimization >Synopsis: -o2 processed floating point code generates bogus NaN >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Jun 25 10:46:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: hanelyp@calweb.com >Release: gcc 2.96 20000731 (redhat linux 7.1 2.96-98) >Organization: >Environment: redhat linux 7.2 cygwin >Description: compiling with -o2 produces bogus floating point NaN. Same generated code may work right sometimes and not others. Libraries (presumably built with this option) are affected, including atof(), sin(), cos() call to printf() appears to patch bug in some cases. >How-To-Repeat: bug encountered developing http://www.calweb.com/~hanelyp/treecad/ >Fix: As an interum, avoiding this optomization with floating point code. >Release-Note: >Audit-Trail: >Unformatted: