public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/47320] New: FAIL: 18_support/numeric_limits/lowest.cc execution test
@ 2011-01-16 20:28 danglin at gcc dot gnu.org
2011-01-16 20:56 ` [Bug libstdc++/47320] " paolo.carlini at oracle dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: danglin at gcc dot gnu.org @ 2011-01-16 20:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47320
Summary: FAIL: 18_support/numeric_limits/lowest.cc execution
test
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: danglin@gcc.gnu.org
Host: hppa*-*-hpux11.00
Target: hppa*-*-hpux11.00
Build: hppa*-*-hpux11.00
Executing on host: /xxx/gnu/gcc/objdir/./gcc/g++ -shared-libgcc
-B/xxx/gnu/gcc/o
bjdir/./gcc -nostdinc++
-L/xxx/gnu/gcc/objdir/hppa64-hp-hpux11.00/libstdc++-v3/s
rc -L/xxx/gnu/gcc/objdir/hppa64-hp-hpux11.00/libstdc++-v3/src/.libs
-B/opt/gnu64
/gcc/gcc-4.6/hppa64-hp-hpux11.00/bin/
-B/opt/gnu64/gcc/gcc-4.6/hppa64-hp-hpux11.
00/lib/ -isystem /opt/gnu64/gcc/gcc-4.6/hppa64-hp-hpux11.00/include -isystem
/op
t/gnu64/gcc/gcc-4.6/hppa64-hp-hpux11.00/sys-include
-B/xxx/gnu/gcc/objdir/hppa64
-hp-hpux11.00/./libstdc++-v3/src/.libs -g -O2 -D_GLIBCXX_ASSERT
-fmessage-length
=0 -ffunction-sections -fdata-sections -g -O2 -g -O2 -DLOCALEDIR="."
-nostdinc++
-I/xxx/gnu/gcc/objdir/hppa64-hp-hpux11.00/libstdc++-v3/include/hppa64-hp-hpux11
.00 -I/xxx/gnu/gcc/objdir/hppa64-hp-hpux11.00/libstdc++-v3/include
-I/xxx/gnu/gc
c/gcc/libstdc++-v3/libsupc++ -I/xxx/gnu/gcc/gcc/libstdc++-v3/include/backward
-I
/xxx/gnu/gcc/gcc/libstdc++-v3/testsuite/util
/xxx/gnu/gcc/gcc/libstdc++-v3/tests
uite/18_support/numeric_limits/lowest.cc -std=gnu++0x ./libtestc++.a -lm
-
o ./lowest.exe (timeout = 600)
PASS: 18_support/numeric_limits/lowest.cc (test for excess errors)
Setting LD_LIBRARY_PATH to
:/xxx/gnu/gcc/objdir/gcc:/xxx/gnu/gcc/objdir/hppa64-h
p-hpux11.00/./libstdc++-v3/../libgomp/.libs:/xxx/gnu/gcc/objdir/hppa64-hp-hpux11
.00/./libstdc++-v3/src/.libs::/xxx/gnu/gcc/objdir/gcc:/xxx/gnu/gcc/objdir/hppa64
-hp-hpux11.00/./libstdc++-v3/../libgomp/.libs:/xxx/gnu/gcc/objdir/hppa64-hp-hpux
11.00/./libstdc++-v3/src/.libs
Assertion failed: std::numeric_limits<T>::lowest() == -limits_max, file
/xxx/gnu
/gcc/gcc/libstdc++-v3/testsuite/18_support/numeric_limits/lowest.cc, line 44
FAIL: 18_support/numeric_limits/lowest.cc execution test
The "Assertion failed" line number seems slightly off. With gdb, I
see the assertion fails in the previous check:
Breakpoint 4, 0x40000000000055e4 in do_test<wchar_t> ()
at
/xxx/gnu/gcc/gcc/libstdc++-v3/testsuite/18_support/numeric_limits/lowest.cc:35
35 VERIFY( std::numeric_limits<T>::lowest() == limits_min );
(gdb) bt
#0 0x40000000000055e4 in do_test<wchar_t> ()
at
/xxx/gnu/gcc/gcc/libstdc++-v3/testsuite/18_support/numeric_limits/lowest.cc:35
#1 0x4000000000004ec4 in do_test<wchar_t> ()
at
/xxx/gnu/gcc/gcc/libstdc++-v3/testsuite/18_support/numeric_limits/lowest.cc:50
#2 0x4000000000004c3c in test01 ()
at
/xxx/gnu/gcc/gcc/libstdc++-v3/testsuite/18_support/numeric_limits/lowest.cc:57
#3 0x4000000000004d80 in main ()
at
/xxx/gnu/gcc/gcc/libstdc++-v3/testsuite/18_support/numeric_limits/lowest.cc:80
The failing assert is here:
(gdb) disass 0x40000000000055a4 0x40000000000055c4
Dump of assembler code from 0x40000000000055a4 to 0x40000000000055c4:
0x40000000000055a4 <_Z7do_testIwEvSt17integral_constantIbLb0EE+100>: copy
ret0,r31
0x40000000000055a8 <_Z7do_testIwEvSt17integral_constantIbLb0EE+104>: ldw
c(r3),ret0
0x40000000000055ac <_Z7do_testIwEvSt17integral_constantIbLb0EE+108>: sub
r0,ret0,ret0
0x40000000000055b0 <_Z7do_testIwEvSt17integral_constantIbLb0EE+112>: extrd,u
ret0,63,32,ret0
0x40000000000055b4 <_Z7do_testIwEvSt17integral_constantIbLb0EE+116>:
cmpb,=,n ret0,r31,0x40000000000055f0
<_Z7do_testIwEvSt17integral_constantIbLb0EE+176>
At 0x40000000000055ac, we have
(gdb) p/x $ret0
$7 = 0xffffffff
(gdb) p/x $r31
$8 = 0x0
At 0x40000000000055b0,
(gdb) p/x $ret0
$10 = 0xffffffff00000001
At 0x40000000000055b4,
(gdb) p/x $ret0
$11 = 0x1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/47320] FAIL: 18_support/numeric_limits/lowest.cc execution test
2011-01-16 20:28 [Bug libstdc++/47320] New: FAIL: 18_support/numeric_limits/lowest.cc execution test danglin at gcc dot gnu.org
@ 2011-01-16 20:56 ` paolo.carlini at oracle dot com
2011-01-16 21:27 ` paolo at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-01-16 20:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47320
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.01.16 20:51:45
AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot
|gnu.org |com
Target Milestone|--- |4.6.0
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/47320] FAIL: 18_support/numeric_limits/lowest.cc execution test
2011-01-16 20:28 [Bug libstdc++/47320] New: FAIL: 18_support/numeric_limits/lowest.cc execution test danglin at gcc dot gnu.org
2011-01-16 20:56 ` [Bug libstdc++/47320] " paolo.carlini at oracle dot com
@ 2011-01-16 21:27 ` paolo at gcc dot gnu.org
2011-01-16 21:45 ` paolo.carlini at oracle dot com
2021-10-11 11:04 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu.org @ 2011-01-16 21:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47320
--- Comment #1 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-01-16 20:55:34 UTC ---
Author: paolo
Date: Sun Jan 16 20:55:30 2011
New Revision: 168873
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168873
Log:
2011-01-16 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/47320
* testsuite/18_support/numeric_limits/lowest.cc:
Only test wchar_t when _GLIBCXX_USE_WCHAR_T is defined.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/testsuite/18_support/numeric_limits/lowest.cc
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/47320] FAIL: 18_support/numeric_limits/lowest.cc execution test
2011-01-16 20:28 [Bug libstdc++/47320] New: FAIL: 18_support/numeric_limits/lowest.cc execution test danglin at gcc dot gnu.org
2011-01-16 20:56 ` [Bug libstdc++/47320] " paolo.carlini at oracle dot com
2011-01-16 21:27 ` paolo at gcc dot gnu.org
@ 2011-01-16 21:45 ` paolo.carlini at oracle dot com
2021-10-11 11:04 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-01-16 21:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47320
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-01-16 20:56:36 UTC ---
Done.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/47320] FAIL: 18_support/numeric_limits/lowest.cc execution test
2011-01-16 20:28 [Bug libstdc++/47320] New: FAIL: 18_support/numeric_limits/lowest.cc execution test danglin at gcc dot gnu.org
` (2 preceding siblings ...)
2011-01-16 21:45 ` paolo.carlini at oracle dot com
@ 2021-10-11 11:04 ` redi at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2021-10-11 11:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47320
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
N.B. I've just reverted this fix as part of
r12-4268-gfec283b63d7f24f4c37792dd07ab1055186ba88f
The numeric limits specialization is defined unconditionally, so is correct
whether or not _GLIBCXX_USE_WCHAR_T is defined, and so this test should always
pass.
The problem here was that is_integral<wchar_t>::value was false, so it used the
do_test(false_type) overload which is intended for floating-point types.
r11-4590-g29e418485848c4a6943d8561cd8fb0b1abf14015 changed that, so that
is_integral<wchar_t> is always true (as required by the C++ standard) even if
wchar_t support is not present in libc. Since that change, this test should
always pass for wchar_t.
I'm changing the test to use numeric_limits<T>::is_integer instead of
is_integral<T> anyway, because is_integer<__int128> depends on __STRICT_ANSI__
and so the test fails in a similar way for __int128 as it did for wchar_t.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-10-11 11:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-16 20:28 [Bug libstdc++/47320] New: FAIL: 18_support/numeric_limits/lowest.cc execution test danglin at gcc dot gnu.org
2011-01-16 20:56 ` [Bug libstdc++/47320] " paolo.carlini at oracle dot com
2011-01-16 21:27 ` paolo at gcc dot gnu.org
2011-01-16 21:45 ` paolo.carlini at oracle dot com
2021-10-11 11:04 ` redi at gcc dot gnu.org
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).