public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/7753: Problems with <limit> (signaling_Nan())
@ 2002-08-28 17:46 Peter Schmid
0 siblings, 0 replies; 5+ messages in thread
From: Peter Schmid @ 2002-08-28 17:46 UTC (permalink / raw)
To: gcc-gnats
>Number: 7753
>Category: libstdc++
>Synopsis: Problems with <limit> (signaling_Nan())
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Wed Aug 28 17:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Peter Schmid
>Release: 3.3 20020828 (experimental)
>Organization:
TU Darmstadt
>Environment:
System: Linux kiste 2.4.18 #8 Sat Mar 9 15:33:15 CET 2002 i686 unknown
Architecture: i686
2.13.90.0.3 20020809
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --enable-shared --disable-nls --enable-threads=posix --enable-languages=c,c++,f77,objc --enable-__cxa_atexit
>Description:
gcc does not compile the file tnan.C. There are problems with the
functions returning the representations of SNANs, QNANs and
Infinity.
>How-To-Repeat:
source code tnan.C
#include <limits>
#include <iostream>
using namespace std;
int main()
{
cout << numeric_limits<float>::signaling_NaN() << endl;
cout << numeric_limits<float>::quiet_NaN() << endl;
cout << numeric_limits<float>::infinity() << endl;
cout << numeric_limits<double>::signaling_NaN() << endl;
cout << numeric_limits<double>::quiet_NaN() << endl;
cout << numeric_limits<double>::infinity() << endl;
cout << numeric_limits<long double>::signaling_NaN() << endl;
cout << numeric_limits<long double>::quiet_NaN() << endl;
cout << numeric_limits<long double>::infinity() << endl;
}
Compiling tnan.C
g++ -v -W -Wall tnan.C
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc/configure --enable-shared --disable-nls --enable-threads=posix --enable-languages=c,c++,f77,objc --enable-__cxa_atexit
Thread model: posix
gcc version 3.3 20020828 (experimental)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/cc1plus -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D_GNU_SOURCE tnan.C -D__GNUG__=3 -quiet -dumpbase tnan.C -auxbase tnan -W -Wall -version -o /tmp/cczYDUy2.s
GNU C++ version 3.3 20020828 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.3 20020828 (experimental).
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include/c++/3.3
/usr/local/include/c++/3.3/i686-pc-linux-gnu
/usr/local/include/c++/3.3/backward
/usr/local/include
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/include
/usr/include
End of search list.
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../../i686-pc-linux-gnu/bin/as -V -Qy -o /tmp/ccXsHbC5.o /tmp/cczYDUy2.s
GNU assembler version 2.13.90.0.3 (i686-pc-linux-gnu) using BFD version 2.13.90.0.3 20020809
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/crtbegin.o -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3 -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../../i686-pc-linux-gnu/lib -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../.. /tmp/ccXsHbC5.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/crtend.o /usr/lib/crtn.o
/tmp/ccXsHbC5.o: In function `std::numeric_limits<float>::infinity()':
/tmp/ccXsHbC5.o(.gnu.linkonce.t._ZNSt14numeric_limitsIfE8infinityEv+0x7): undefined reference to `std::__glibcpp_float_infinity'
/tmp/ccXsHbC5.o: In function `std::numeric_limits<float>::quiet_NaN()':
/tmp/ccXsHbC5.o(.gnu.linkonce.t._ZNSt14numeric_limitsIfE9quiet_NaNEv+0x7): undefined reference to `std::__glibcpp_float_QNaN'
/tmp/ccXsHbC5.o: In function `std::numeric_limits<float>::signaling_NaN()':
/tmp/ccXsHbC5.o(.gnu.linkonce.t._ZNSt14numeric_limitsIfE13signaling_NaNEv+0x7): undefined reference to `std::__glibcpp_float_SNaN'
/tmp/ccXsHbC5.o: In function `std::numeric_limits<double>::infinity()':
/tmp/ccXsHbC5.o(.gnu.linkonce.t._ZNSt14numeric_limitsIdE8infinityEv+0x5): undefined reference to `std::__glibcpp_double_infinity'
/tmp/ccXsHbC5.o: In function `std::numeric_limits<double>::quiet_NaN()':
/tmp/ccXsHbC5.o(.gnu.linkonce.t._ZNSt14numeric_limitsIdE9quiet_NaNEv+0x5): undefined reference to `std::__glibcpp_double_QNaN'
/tmp/ccXsHbC5.o: In function `std::numeric_limits<double>::signaling_NaN()':
/tmp/ccXsHbC5.o(.gnu.linkonce.t._ZNSt14numeric_limitsIdE13signaling_NaNEv+0x5): undefined reference to `std::__glibcpp_double_SNaN'
/tmp/ccXsHbC5.o: In function `std::numeric_limits<long double>::infinity()':
/tmp/ccXsHbC5.o(.gnu.linkonce.t._ZNSt14numeric_limitsIeE8infinityEv+0x7): undefined reference to `std::__glibcpp_long_double_infinity'
/tmp/ccXsHbC5.o(.gnu.linkonce.t._ZNSt14numeric_limitsIeE8infinityEv+0xd): undefined reference to `std::__glibcpp_long_double_infinity'
/tmp/ccXsHbC5.o(.gnu.linkonce.t._ZNSt14numeric_limitsIeE8infinityEv+0x13): undefined reference to `std::__glibcpp_long_double_infinity'
/tmp/ccXsHbC5.o: In function `std::numeric_limits<long double>::quiet_NaN()':
/tmp/ccXsHbC5.o(.gnu.linkonce.t._ZNSt14numeric_limitsIeE9quiet_NaNEv+0x7): undefined reference to `std::__glibcpp_long_double_QNaN'
/tmp/ccXsHbC5.o(.gnu.linkonce.t._ZNSt14numeric_limitsIeE9quiet_NaNEv+0xd): undefined reference to `std::__glibcpp_long_double_QNaN'
/tmp/ccXsHbC5.o(.gnu.linkonce.t._ZNSt14numeric_limitsIeE9quiet_NaNEv+0x13): undefined reference to `std::__glibcpp_long_double_QNaN'
/tmp/ccXsHbC5.o: In function `std::numeric_limits<long double>::signaling_NaN()':
/tmp/ccXsHbC5.o(.gnu.linkonce.t._ZNSt14numeric_limitsIeE13signaling_NaNEv+0x7): undefined reference to `std::__glibcpp_long_double_SNaN'
/tmp/ccXsHbC5.o(.gnu.linkonce.t._ZNSt14numeric_limitsIeE13signaling_NaNEv+0xd): undefined reference to `std::__glibcpp_long_double_SNaN'
/tmp/ccXsHbC5.o(.gnu.linkonce.t._ZNSt14numeric_limitsIeE13signaling_NaNEv+0x13): undefined reference to `std::__glibcpp_long_double_SNaN'
collect2: ld returned 1 exit status
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: libstdc++/7753: Problems with <limit> (signaling_Nan())
@ 2002-10-09 18:26 ljrittle
0 siblings, 0 replies; 5+ messages in thread
From: ljrittle @ 2002-10-09 18:26 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, schmid
Synopsis: Problems with <limit> (signaling_Nan())
State-Changed-From-To: open->closed
State-Changed-By: ljrittle
State-Changed-When: Wed Oct 9 18:26:31 2002
State-Changed-Why:
Fixed according to PR submitter.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7753
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: libstdc++/7753: Problems with <limit> (signaling_Nan())
@ 2002-08-29 3:46 Gabriel Dos Reis
0 siblings, 0 replies; 5+ messages in thread
From: Gabriel Dos Reis @ 2002-08-29 3:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR libstdc++/7753; it has been noted by GNATS.
From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
Cc: <gcc-gnats@gcc.gnu.org>
Subject: Re: libstdc++/7753: Problems with <limit> (signaling_Nan())
Date: 29 Aug 2002 10:58:51 +0200
Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de> writes:
| as --version
| GNU assembler 2.13.90.0.3 20020809
| Copyright 2002 Free Software Foundation, Inc.
| This program is free software; you may redistribute it under the terms of
| the GNU General Public License. This program has absolutely no warranty.
| This assembler was configured for a target of `i686-pc-linux-gnu'.
|
| ld --version
| GNU ld version 2.13.90.0.3 20020809
| Copyright 2002 Free Software Foundation, Inc.
| This program is free software; you may redistribute it under the terms of
| the GNU General Public License. This program has absolutely no warranty.
|
| nm libstdc++.so | c++filt| grep _float_
|
| 00095630 r std::__glibcpp_float_QNaN
| 00095634 r std::__glibcpp_float_SNaN
| 0009562c r std::__glibcpp_float_infinity
| 00095638 r std::__glibcpp_float_denorm_min
|
| nm libstdc++.so | c++filt| grep _double_
| 00095648 r std::__glibcpp_double_QNaN
| 00095650 r std::__glibcpp_double_SNaN
| 00095640 r std::__glibcpp_double_infinity
| 0009566c r std::__glibcpp_long_double_QNaN
| 00095678 r std::__glibcpp_long_double_SNaN
| 00095658 r std::__glibcpp_double_denorm_min
| 00095660 r std::__glibcpp_long_double_infinity
| 00095684 r std::__glibcpp_long_double_denorm_min
|
| Hope this helps,
Thanks, so this seems to be a binutils issue.
Would you mind reporting that to binutils people?
Thanks,
-- Gaby
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: libstdc++/7753: Problems with <limit> (signaling_Nan())
@ 2002-08-29 2:06 Peter Schmid
0 siblings, 0 replies; 5+ messages in thread
From: Peter Schmid @ 2002-08-29 2:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR libstdc++/7753; it has been noted by GNATS.
From: Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
To: Gabriel Dos Reis <gdr@integrable-solutions.net>
Cc: <gcc-gnats@gcc.gnu.org>
Subject: Re: libstdc++/7753: Problems with <limit> (signaling_Nan())
Date: Thu, 29 Aug 2002 10:29:24 +0200 (CEST)
as --version
GNU assembler 2.13.90.0.3 20020809
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
This assembler was configured for a target of `i686-pc-linux-gnu'.
ld --version
GNU ld version 2.13.90.0.3 20020809
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
nm libstdc++.so | c++filt| grep _float_
00095630 r std::__glibcpp_float_QNaN
00095634 r std::__glibcpp_float_SNaN
0009562c r std::__glibcpp_float_infinity
00095638 r std::__glibcpp_float_denorm_min
nm libstdc++.so | c++filt| grep _double_
00095648 r std::__glibcpp_double_QNaN
00095650 r std::__glibcpp_double_SNaN
00095640 r std::__glibcpp_double_infinity
0009566c r std::__glibcpp_long_double_QNaN
00095678 r std::__glibcpp_long_double_SNaN
00095658 r std::__glibcpp_double_denorm_min
00095660 r std::__glibcpp_long_double_infinity
00095684 r std::__glibcpp_long_double_denorm_min
Hope this helps,
Peter Schmid
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: libstdc++/7753: Problems with <limit> (signaling_Nan())
@ 2002-08-28 17:46 Gabriel Dos Reis
0 siblings, 0 replies; 5+ messages in thread
From: Gabriel Dos Reis @ 2002-08-28 17:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR libstdc++/7753; it has been noted by GNATS.
From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/7753: Problems with <limit> (signaling_Nan())
Date: 29 Aug 2002 02:32:50 +0200
Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de> writes:
| System: Linux kiste 2.4.18 #8 Sat Mar 9 15:33:15 CET 2002 i686 unknown
| Architecture: i686
| 2.13.90.0.3 20020809
| host: i686-pc-linux-gnu
| build: i686-pc-linux-gnu
| target: i686-pc-linux-gnu
| configured with: ../gcc/configure --enable-shared --disable-nls --enable-threads=posix --enable-languages=c,c++,f77,objc --enable-__cxa_atexit
| >Description:
| gcc does not compile the file tnan.C. There are problems with the
| functions returning the representations of SNANs, QNANs and
| Infinity.
This is odd, because I'm also using such an architecture and I'm not
seeing the failure you're reporting. I have:
% as --version
GNU assembler 2.12.90 20020707
and
% ld --version
GNU ld version 2.12.90 20020707
% nm libstdc++.so | c++filt| grep _float_
00099298 R std::__glibcpp_float_QNaN
0009929c R std::__glibcpp_float_SNaN
00099294 R std::__glibcpp_float_infinity
000992a0 R std::__glibcpp_float_denorm_min
% nm libstdc++.so | c++filt| grep _double_
000992b0 R std::__glibcpp_double_QNaN
000992b8 R std::__glibcpp_double_SNaN
000992a8 R std::__glibcpp_double_infinity
000992d4 R std::__glibcpp_long_double_QNaN
000992e0 R std::__glibcpp_long_double_SNaN
000992c0 R std::__glibcpp_double_denorm_min
000992c8 R std::__glibcpp_long_double_infinity
000992ec R std::__glibcpp_long_double_denorm_min
What do you get?
-- Gaby
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-10-10 1:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-28 17:46 libstdc++/7753: Problems with <limit> (signaling_Nan()) Peter Schmid
-- strict thread matches above, loose matches on Subject: below --
2002-10-09 18:26 ljrittle
2002-08-29 3:46 Gabriel Dos Reis
2002-08-29 2:06 Peter Schmid
2002-08-28 17:46 Gabriel Dos Reis
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).