From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6412 invoked by alias); 25 Jul 2012 18:31:49 -0000 Received: (qmail 6399 invoked by uid 22791); 25 Jul 2012 18:31:48 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Jul 2012 18:31:35 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 7A81A1C768B for ; Wed, 25 Jul 2012 14:31:34 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DI2nSTRhFwL5 for ; Wed, 25 Jul 2012 14:31:34 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 359A91C768A for ; Wed, 25 Jul 2012 14:31:34 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 0865814561A; Wed, 25 Jul 2012 11:31:32 -0700 (PDT) Date: Wed, 25 Jul 2012 18:31:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: Re: [RFA] convert_doublest_to_floatformat: handle off-range values. Message-ID: <20120725183132.GA2767@adacore.com> References: <1339632037-5252-1-git-send-email-brobecker@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1339632037-5252-1-git-send-email-brobecker@adacore.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-07/txt/msg00570.txt.bz2 > gdb/ChangeLog: > > * doublest.c (convert_doublest_to_floatformat): If the exponent > is too small, treat the value as zero. If the exponent is too > large, treat the value as infinity. FYI: I checked this patch in. We could do even better (for really small numbers), but I don't think I will have much time in the near future and this patch isn't making things more difficult in that respect. In the meantime, I think this is an improvement over the previous situation. -- Joel