public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/3139: DR 184: numeric_limits<bool> problems
@ 2002-04-08 4:06 Gabriel Dos Reis
0 siblings, 0 replies; 6+ messages in thread
From: Gabriel Dos Reis @ 2002-04-08 4:06 UTC (permalink / raw)
To: bkoz; +Cc: gcc-prs
The following reply was made to PR libstdc++/3139; it has been noted by GNATS.
From: Gabriel Dos Reis <gdr@codesourcery.com>
To: bkoz@gcc.gnu.org
Cc: gcc-bugs@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<bool> problems
Date: 08 Apr 2002 13:00:45 +0200
bkoz@gcc.gnu.org writes:
| Synopsis: DR 184: numeric_limits<bool> 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?
Yes, it is fine. Thanks.
-- Gaby
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: libstdc++/3139: DR 184: numeric_limits<bool> problems
@ 2002-04-03 21:34 bkoz
0 siblings, 0 replies; 6+ messages in thread
From: bkoz @ 2002-04-03 21:34 UTC (permalink / raw)
To: bkoz, gcc-bugs, gcc-prs, gdr, kenny.simpson, theonetruekenny
Synopsis: DR 184: numeric_limits<bool> problems
State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Wed Apr 3 21:34:21 2002
State-Changed-Why:
Fixed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3139
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: libstdc++/3139: DR 184: numeric_limits<bool> problems
@ 2002-03-28 15:11 bkoz
0 siblings, 0 replies; 6+ messages in thread
From: bkoz @ 2002-03-28 15:11 UTC (permalink / raw)
To: bkoz, gcc-bugs, gcc-prs, gdr, kenny.simpson, theonetruekenny
Synopsis: DR 184: numeric_limits<bool> 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 <bkoz@redhat.com>
As per DR 184, libstdc++/3139
* include/std/std_limits.h (__glibcpp_bool_digits): Change to 1.
(numeric_limits<bool>::is_iec559): False.
(numeric_limits<bool>::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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: libstdc++/3139: DR 184: numeric_limits<bool> problems
@ 2001-06-13 9:57 bkoz
0 siblings, 0 replies; 6+ messages in thread
From: bkoz @ 2001-06-13 9:57 UTC (permalink / raw)
To: gdr, bkoz, gcc-bugs, gcc-prs, kenny.simpson, theonetruekenny
Synopsis: DR 184: numeric_limits<bool> problems
State-Changed-From-To: feedback->analyzed
State-Changed-By: bkoz
State-Changed-When: Wed Jun 13 09:57:10 2001
State-Changed-Why:
The remaining bits are undone.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3139&database=gcc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: libstdc++/3139: DR 184: numeric_limits<bool> problems
@ 2001-06-12 13:59 bkoz
0 siblings, 0 replies; 6+ messages in thread
From: bkoz @ 2001-06-12 13:59 UTC (permalink / raw)
To: gdr, bkoz, gcc-bugs, gcc-prs, kenny.simpson, nobody, theonetruekenny
Synopsis: DR 184: numeric_limits<bool> problems
Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Tue Jun 12 13:59:38 2001
Responsible-Changed-Why:
Mine.
State-Changed-From-To: open->feedback
State-Changed-By: bkoz
State-Changed-When: Tue Jun 12 13:59:38 2001
State-Changed-Why:
Note that this file is only used during cross-compiles. For native hosts, there's an interactive script (mknumeric_limits) that proves the environment and autogens <limits>
That being said, this is still relevant. I've fixed it in the generic sources, but the rest of it, namely the mknumeric_limits bit, I leave to gaby.
-benjamin
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3139&database=gcc
^ permalink raw reply [flat|nested] 6+ messages in thread
* libstdc++/3139: DR 184: numeric_limits<bool> problems
@ 2001-06-12 9:56 theonetruekenny
0 siblings, 0 replies; 6+ messages in thread
From: theonetruekenny @ 2001-06-12 9:56 UTC (permalink / raw)
To: gcc-gnats; +Cc: kenny.simpson
>Number: 3139
>Category: libstdc++
>Synopsis: DR 184: numeric_limits<bool> problems
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 12 09:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: theonetruekenny@yahoo.com
>Release: 20010612 cvs
>Organization:
>Environment:
source
>Description:
see:
http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/lwg-defects.html#184
>How-To-Repeat:
observe the speicialization on line 112 of include/bits/limits_generic.h
>Fix:
as per DR 184
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-04-08 11:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-08 4:06 libstdc++/3139: DR 184: numeric_limits<bool> problems Gabriel Dos Reis
-- strict thread matches above, loose matches on Subject: below --
2002-04-03 21:34 bkoz
2002-03-28 15:11 bkoz
2001-06-13 9:57 bkoz
2001-06-12 13:59 bkoz
2001-06-12 9:56 theonetruekenny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).