From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26484 invoked by alias); 28 Mar 2002 23:11:46 -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 26427 invoked by uid 61); 28 Mar 2002 23:11:45 -0000 Date: Thu, 28 Mar 2002 15:11:00 -0000 Message-ID: <20020328231145.26426.qmail@sources.redhat.com> To: bkoz@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, gdr@codesourcery.com, kenny.simpson@gs.com, theonetruekenny@yahoo.com From: bkoz@gcc.gnu.org Reply-To: bkoz@gcc.gnu.org, bkoz@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, gdr@codesourcery.com, kenny.simpson@gs.com, theonetruekenny@yahoo.com, gcc-gnats@gcc.gnu.org Subject: Re: libstdc++/3139: DR 184: numeric_limits problems X-SW-Source: 2002-03/txt/msg01100.txt.bz2 List-Id: Synopsis: DR 184: numeric_limits problems State-Changed-From-To: analyzed->feedback State-Changed-By: bkoz State-Changed-When: Thu Mar 28 15:11:44 2002 State-Changed-Why: AAaaaagh. Gaby, this is is off. Can you confirm this is ok? 2002-03-28 Benjamin Kosnik As per DR 184, libstdc++/3139 * include/std/std_limits.h (__glibcpp_bool_digits): Change to 1. (numeric_limits::is_iec559): False. (numeric_limits::is_modulo): False. Index: std_limits.h =================================================================== RCS file: /cvs/gcc/gcc/libstdc++-v3/include/std/std_limits.h,v retrieving revision 1.4 diff -c -p -r1.4 std_limits.h *** std_limits.h 2002/03/08 17:59:12 1.4 --- std_limits.h 2002/03/28 23:10:46 *************** *** 233,243 **** // bool-specific hooks: // __glibcpp_bool_digits __glibcpp_int_traps __glibcpp_long_traps - // This is actually CHAR_BITS because the new ABI says a bool - // is one (1) byte wide. - #ifndef __glibcpp_bool_digits ! #define __glibcpp_bool_digits __glibcpp_char_bits #endif // char. --- 233,240 ---- // bool-specific hooks: // __glibcpp_bool_digits __glibcpp_int_traps __glibcpp_long_traps #ifndef __glibcpp_bool_digits ! #define __glibcpp_bool_digits 1 #endif // char. *************** namespace std *** 996,1004 **** static bool denorm_min() throw() { return false; } ! static const bool is_iec559 = true; static const bool is_bounded = true; ! static const bool is_modulo = true; // It is not clear what it means for a boolean type to trap. // This is a DR on the LWG issue list. Here, I use integer --- 993,1001 ---- static bool denorm_min() throw() { return false; } ! static const bool is_iec559 = false; static const bool is_bounded = true; ! static const bool is_modulo = false; // It is not clear what it means for a boolean type to trap. // This is a DR on the LWG issue list. Here, I use integer http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3139