From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27064 invoked by alias); 29 Sep 2002 17:45:50 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 27016 invoked from network); 29 Sep 2002 17:45:49 -0000 Received: from unknown (HELO mx2.redhat.com) (12.150.115.133) by sources.redhat.com with SMTP; 29 Sep 2002 17:45:49 -0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.11.6/8.11.6) with ESMTP id g8THjls11208; Sun, 29 Sep 2002 13:45:47 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g8THjml16488; Sun, 29 Sep 2002 13:45:48 -0400 Received: from localhost.localdomain (frothingslosh.sfbay.redhat.com [172.16.24.27]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g8THjmw23334; Sun, 29 Sep 2002 10:45:48 -0700 Received: (from rth@localhost) by localhost.localdomain (8.11.6/8.11.6) id g8THjiL29126; Sun, 29 Sep 2002 10:45:44 -0700 X-Authentication-Warning: localhost.localdomain: rth set sender to rth@redhat.com using -f Date: Sun, 29 Sep 2002 11:28:00 -0000 From: Richard Henderson To: Paul Brook Cc: gcc@gcc.gnu.org Subject: Re: real_from_string fails to convert negative values Message-ID: <20020929174544.GB29098@redhat.com> Mail-Followup-To: Richard Henderson , Paul Brook , gcc@gcc.gnu.org References: <200209282233.10226.paul@nowt.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200209282233.10226.paul@nowt.org> User-Agent: Mutt/1.4i X-SW-Source: 2002-09/txt/msg01198.txt.bz2 On Sat, Sep 28, 2002 at 10:37:21PM +0100, Paul Brook wrote: > The real_from_string function in real.c doesn't seem to convert negative > numbers correctly. It seems to return the absolute (ie. positive) value of > the value, and ignore any preceeding - signs. Sure enough. The existing code only works for -0. I'll have it fixed in a moment. r~