summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/std
Commit message (Collapse)AuthorAgeFilesLines
...
* 2003-04-17 Paolo Carlini <pcarlini@unitus.it>paolo2003-04-171-2/+10
| | | | | | | | * include/std/std_streambuf.h (setp): _M_out_lim, being the end limit of used put area, is set equal to _M_out_beg. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65740 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.ljrittle2003-04-151-1/+1
| | | | | | | | | * include/bits/concept_check.h: Fix multi-line comment. * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header when target is *-*-freebsd*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65620 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-14 Nathan Myers <ncm@cantrip.org>paolo2003-04-141-15/+2
| | | | | | | | | | | | | | | Paolo Carlini <pcarlini@unitus.it> PR libstdc++/9701 (in_avail()) * include/std/std_streambuf.h (in_avail): Simplify, in_avail doesn't care if there is anything in some putback cell. * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add. * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some unused string literals. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65603 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-12 Paolo Carlini <pcarlini@unitus.it>paolo2003-04-122-20/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove _M_buf_size_opt, use directly _M_buf_size instead. * include/bits/fstream.tcc (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove references to _M_buf_size_opt. * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise. * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename __bufsize to __in_avail and __size_opt to __buf_size. * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise. * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise. * include/std/std_streambuf.h (~basic_streambuf(), basic_streambuf()): Likewise, remove _M_buf_size_opt member. * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size. * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise. * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise. * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise. * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise. * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise. * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise. * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise. * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise. * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise. * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise. * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65518 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-04-103-22/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc, filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc, filebuf_virtuals-1.tst, filebuf_virtuals-1.txt, filebuf_virtuals-2.tst, filebuf_virtuals-3.tst, filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc, ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt, ifstream_members.cc, instantiations.cc, ios.cc, ios_base_callbacks.cc, ios_base_members_static-1.tst, ios_base_members_static.cc, ios_base_storage.cc, ios_base_types.cc, ios_ctor.cc, ios_init.cc, ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc, iostream.cc, iostream_members.cc, istream.cc, istream_exception.cc, istream_extractor_char.cc, istream_extractor_other-1.tst, istream_extractor_other-1.txt, istream_extractor_other-2.tst, istream_extractor_other.cc, istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt, istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc, istream_sentry.cc, istream_unformatted-1.tst, istream_unformatted-1.txt, istream_unformatted.cc, istringstream.cc, istringstream_members.cc, narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst, ofstream_members.cc, ostream.cc, ostream_exception.cc, ostream_fail.cc, ostream_inserter_arith.cc, ostream_inserter_char-1.tst, ostream_inserter_char-1.txt, ostream_inserter_char.cc, ostream_inserter_other-1.tst, ostream_inserter_other-2.tst, ostream_inserter_other.cc, ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc, ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc, ostringstream_members.cc, standard_manipulators.cc, streambuf.cc, streambuf_members.cc, stringbuf.cc, stringbuf_members.cc, stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc, wide_stream_objects.cc, istream_extractor_arith/01.cc, istream_extractor_arith/02.cc, istream_extractor_arith/03.cc, istream_extractor_arith/06.cc, istream_extractor_arith/07.cc, istream_extractor_arith/08.cc, istream_extractor_arith/09.cc, istream_extractor_arith/10.cc, istream_extractor_arith/11.cc, istream_extractor_arith/12.cc, istream_extractor_arith/13.cc: Split into... * 27_io/basic_filebuf/1.cc: New. * 27_io/basic_filebuf/2.cc: New. * 27_io/basic_filebuf/3.cc: New. * 27_io/basic_filebuf/4.cc: New. * 27_io/basic_filebuf/close/char/1.cc: New. * 27_io/basic_filebuf/close/char/2.cc: New. * 27_io/basic_filebuf/close/char/3.cc: New. * 27_io/basic_filebuf/close/char/4879.cc: New. * 27_io/basic_filebuf/close/char/9964.cc: New. * 27_io/basic_filebuf/imbue/char/1.cc: New. * 27_io/basic_filebuf/imbue/char/9322.cc: New. * 27_io/basic_filebuf/in_avail/char/1.cc: New. * 27_io/basic_filebuf/is_open/char/1.cc: New. * 27_io/basic_filebuf/open/char/1.cc: New. * 27_io/basic_filebuf/open/char/2.cc: New. * 27_io/basic_filebuf/open/char/3.cc: New. * 27_io/basic_filebuf/open/char/9507.cc: New. * 27_io/basic_filebuf/overflow/char/1.cc: New. * 27_io/basic_filebuf/overflow/char/3599.cc: New. * 27_io/basic_filebuf/overflow/char/9169.cc: New. * 27_io/basic_filebuf/overflow/char/9182-2.cc: New. * 27_io/basic_filebuf/overflow/char/9988.cc: New. * 27_io/basic_filebuf/sbumpc/char/1.cc: New. * 27_io/basic_filebuf/sbumpc/char/9825.cc: New. * 27_io/basic_filebuf/seekoff/char/1.cc: New. * 27_io/basic_filebuf/seekoff/char/2.cc: New. * 27_io/basic_filebuf/seekpos/char/1.cc: New. * 27_io/basic_filebuf/seekpos/char/2.cc: New. * 27_io/basic_filebuf/setbuf/char/1.cc: New. * 27_io/basic_filebuf/setbuf/char/2.cc: New. * 27_io/basic_filebuf/setbuf/char/3.cc: New. * 27_io/basic_filebuf/sgetc/char/1.cc: New. * 27_io/basic_filebuf/sgetn/char/1.cc: New. * 27_io/basic_filebuf/sgetn/char/2.cc: New. * 27_io/basic_filebuf/snextc/char/1.cc: New. * 27_io/basic_filebuf/sputbackc/char/1.cc: New. * 27_io/basic_filebuf/sputbackc/char/9425.cc: New. * 27_io/basic_filebuf/sputc/char/1.cc: New. * 27_io/basic_filebuf/sputc/char/1057.cc: New. * 27_io/basic_filebuf/sputc/char/9701-2.cc: New. * 27_io/basic_filebuf/sputn/char/1.cc: New. * 27_io/basic_filebuf/sputn/char/1057.cc: New. * 27_io/basic_filebuf/sputn/char/9701-1.cc: New. * 27_io/basic_filebuf/sungetc/char/1.cc: New. * 27_io/basic_filebuf/sync/char/1057.cc: New. * 27_io/basic_filebuf/sync/char/9182-1.cc: New. * 27_io/basic_filebuf/underflow/char/10097.cc: New. * 27_io/basic_fstream/1.cc: New. * 27_io/basic_fstream/2.cc: New. * 27_io/basic_fstream/3.cc: New. * 27_io/basic_fstream/4.cc: New. * 27_io/basic_fstream/rdbuf/char/2832.cc: New. * 27_io/basic_ifstream/1.cc: New. * 27_io/basic_ifstream/2.cc: New. * 27_io/basic_ifstream/3.cc: New. * 27_io/basic_ifstream/4.cc: New. * 27_io/basic_ifstream/cons/char/1.cc: New. * 27_io/basic_ifstream/open/char/1.cc: New. * 27_io/basic_ifstream/rdbuf/char/2832.cc: New. * 27_io/basic_ios/1.cc: New. * 27_io/basic_ios/2.cc: New. * 27_io/basic_ios/3.cc: New. * 27_io/basic_ios/4.cc: New. * 27_io/basic_ios/clear/char/1.cc: New. * 27_io/basic_ios/cons/char/1.cc: New. * 27_io/basic_ios/cons/char/2.cc: New. * 27_io/basic_ios/cons/char/3.cc: New. * 27_io/basic_ios/copyfmt/char/1.cc: New. * 27_io/basic_ios/copyfmt/char/2.cc: New. * 27_io/basic_ios/exceptions/char/1.cc: New. * 27_io/basic_ios/locales/char/1.cc: New. * 27_io/basic_iostream/1.cc: New. * 27_io/basic_iostream/2.cc: New. * 27_io/basic_iostream/3.cc: New. * 27_io/basic_iostream/4.cc: New. * 27_io/basic_istream/1.cc: New. * 27_io/basic_istream/2.cc: New. * 27_io/basic_istream/3.cc: New. * 27_io/basic_istream/4.cc: New. * 27_io/basic_istream/exceptions/char/9561.cc: New. * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New. * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New. * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New. * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New. * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New. * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New. * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New. * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New. * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New. * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New. * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New. * 27_io/basic_istream/extractors_character/char/1.cc: New. * 27_io/basic_istream/extractors_character/char/2.cc: New. * 27_io/basic_istream/extractors_character/char/3.cc: New. * 27_io/basic_istream/extractors_character/char/9826.cc: New. * 27_io/basic_istream/extractors_other/char/1.cc: New. * 27_io/basic_istream/extractors_other/char/2.cc: New. * 27_io/basic_istream/extractors_other/char/3.cc: New. * 27_io/basic_istream/extractors_other/char/9318-in.cc: New. * 27_io/basic_istream/extractors_other/char/9424-in.cc: New. * 27_io/basic_istream/get/char/1.cc: New. * 27_io/basic_istream/get/char/2.cc: New. * 27_io/basic_istream/getline/char/1.cc: New. * 27_io/basic_istream/getline/char/2.cc: New. * 27_io/basic_istream/getline/char/3.cc: New. * 27_io/basic_istream/ignore/char/1.cc: New. * 27_io/basic_istream/ignore/char/6360.cc: New. * 27_io/basic_istream/ignore/char/7220.cc: New. * 27_io/basic_istream/peek/char/1.cc: New. * 27_io/basic_istream/peek/char/6414.cc: New. * 27_io/basic_istream/putback/char/1.cc: New. * 27_io/basic_istream/read/char/1.cc: New. * 27_io/basic_istream/read/char/2.cc: New. * 27_io/basic_istream/read/char/3.cc: New. * 27_io/basic_istream/readsome/char/6746-1.cc: New. * 27_io/basic_istream/readsome/char/6746-2.cc: New. * 27_io/basic_istream/readsome/char/8258.cc: New. * 27_io/basic_istream/seekg/char/2346-fstream.cc: New. * 27_io/basic_istream/seekg/char/2346-sstream.cc: New. * 27_io/basic_istream/seekg/char/8348-1.cc: New. * 27_io/basic_istream/seekg/char/8348-2.cc: New. * 27_io/basic_istream/seekg/char/fstream.cc: New. * 27_io/basic_istream/seekg/char/sstream.cc: New. * 27_io/basic_istream/sentry/char/1.cc: New. * 27_io/basic_istream/sentry/char/2.cc: New. * 27_io/basic_istream/sentry/char/3.cc: New. * 27_io/basic_istream/sentry/char/3983-fstream.cc: New. * 27_io/basic_istream/sentry/char/3983-sstream.cc: New. * 27_io/basic_istream/tellg/char/1.cc: New. * 27_io/basic_istream/tellg/char/8348.cc: New. * 27_io/basic_istream/tellg/char/fstream.cc: New. * 27_io/basic_istream/tellg/char/sstream.cc: New. * 27_io/basic_istream/ws/char/1.cc: New. * 27_io/basic_istringstream/1.cc: New. * 27_io/basic_istringstream/2.cc: New. * 27_io/basic_istringstream/3.cc: New. * 27_io/basic_istringstream/4.cc: New. * 27_io/basic_istringstream/rdbuf/char/2832.cc: New. * 27_io/basic_istringstream/str/char/1.cc: New. * 27_io/basic_ofstream/1.cc: New. * 27_io/basic_ofstream/2.cc: New. * 27_io/basic_ofstream/3.cc: New. * 27_io/basic_ofstream/4.cc: New. * 27_io/basic_ofstream/cons/char/2.cc: New. * 27_io/basic_ofstream/open/char/1.cc: New. * 27_io/basic_ofstream/rdbuf/char/2832.cc: New. * 27_io/basic_ostream/1.cc: New. * 27_io/basic_ostream/2.cc: New. * 27_io/basic_ostream/3.cc: New. * 27_io/basic_ostream/4.cc: New. * 27_io/basic_ostream/cons/char/9827.cc: New. * 27_io/basic_ostream/endl/char/1.cc: New. * 27_io/basic_ostream/ends/char/1.cc: New. * 27_io/basic_ostream/ends/char/2.cc: New. * 27_io/basic_ostream/exceptions/char/9561.cc: New. * 27_io/basic_ostream/flush/char/1.cc: New. * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New. * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New. * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New. * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New. * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New. * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New. * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New. * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New. * 27_io/basic_ostream/inserters_character/char/1.cc: New. * 27_io/basic_ostream/inserters_character/char/2.cc: New. * 27_io/basic_ostream/inserters_character/char/3.cc: New. * 27_io/basic_ostream/inserters_character/char/4.cc: New. * 27_io/basic_ostream/inserters_character/char/5.cc: New. * 27_io/basic_ostream/inserters_character/char/6.cc: New. * 27_io/basic_ostream/inserters_character/char/8.cc: New. * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New. * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New. * 27_io/basic_ostream/inserters_other/char/1.cc: New. * 27_io/basic_ostream/inserters_other/char/2.cc: New. * 27_io/basic_ostream/inserters_other/char/3.cc: New. * 27_io/basic_ostream/inserters_other/char/4.cc: New. * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New. * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New. * 27_io/basic_ostream/sentry/char/1.cc: New. * 27_io/basic_ostream/sentry/char/2.cc: New. * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New. * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New. * 27_io/basic_ostream/tellp/char/1.cc: New. * 27_io/basic_ostream/tellp/char/2.cc: New. * 27_io/basic_ostringstream/1.cc: New. * 27_io/basic_ostringstream/2.cc: New. * 27_io/basic_ostringstream/3.cc: New. * 27_io/basic_ostringstream/4.cc: New. * 27_io/basic_ostringstream/cons/char/3.cc: New. * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New. * 27_io/basic_ostringstream/str/char/1.cc: New. * 27_io/basic_ostringstream/str/char/2.cc: New. * 27_io/basic_streambuf/1.cc: New. * 27_io/basic_streambuf/2.cc: New. * 27_io/basic_streambuf/3.cc: New. * 27_io/basic_streambuf/cons/char/1.cc: New. * 27_io/basic_streambuf/imbue/char/1.cc: New. * 27_io/basic_streambuf/imbue/char/9322.cc: New. * 27_io/basic_streambuf/overflow/char/1.cc: New. * 27_io/basic_streambuf/overflow/char/2.cc: New. * 27_io/basic_streambuf/overflow/char/3599.cc: New. * 27_io/basic_streambuf/sgetc/char/1.cc: New. * 27_io/basic_streambuf/sgetn/char/1.cc: New. * 27_io/basic_streambuf/sputbackc/char/9538.cc: New. * 27_io/basic_streambuf/sputc/char/1057.cc: New. * 27_io/basic_streambuf/sputn/char/1.cc: New. * 27_io/basic_streambuf/sputn/char/1057.cc: New. * 27_io/basic_streambuf/sync/char/1057.cc: New. * 27_io/basic_stringbuf/1.cc: New. * 27_io/basic_stringbuf/2.cc: New. * 27_io/basic_stringbuf/3.cc: New. * 27_io/basic_stringbuf/4.cc: New. * 27_io/basic_stringbuf/5.cc: New. * 27_io/basic_stringbuf/imbue/char/1.cc: New. * 27_io/basic_stringbuf/imbue/char/9322.cc: New. * 27_io/basic_stringbuf/in_avail/char/1.cc: New. * 27_io/basic_stringbuf/overflow/char/2.cc: New. * 27_io/basic_stringbuf/overflow/char/3599.cc: New. * 27_io/basic_stringbuf/overflow/char/9988.cc: New. * 27_io/basic_stringbuf/sbumpc/char/1.cc: New. * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New. * 27_io/basic_stringbuf/seekoff/char/1.cc: New. * 27_io/basic_stringbuf/seekoff/char/2.cc: New. * 27_io/basic_stringbuf/seekpos/char/1.cc: New. * 27_io/basic_stringbuf/seekpos/char/2.cc: New. * 27_io/basic_stringbuf/setbuf/char/1.cc: New. * 27_io/basic_stringbuf/setbuf/char/2.cc: New. * 27_io/basic_stringbuf/setbuf/char/3.cc: New. * 27_io/basic_stringbuf/sgetc/char/1.cc: New. * 27_io/basic_stringbuf/sgetn/char/1.cc: New. * 27_io/basic_stringbuf/snextc/char/1.cc: New. * 27_io/basic_stringbuf/sputbackc/char/1.cc: New. * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New. * 27_io/basic_stringbuf/sputc/char/1.cc: New. * 27_io/basic_stringbuf/sputc/char/1057.cc: New. * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New. * 27_io/basic_stringbuf/sputn/char/1.cc: New. * 27_io/basic_stringbuf/sputn/char/1057.cc: New. * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New. * 27_io/basic_stringbuf/str/char/1.cc: New. * 27_io/basic_stringbuf/str/char/2.cc: New. * 27_io/basic_stringbuf/str/char/3.cc: New. * 27_io/basic_stringbuf/str/char/3955.cc: New. * 27_io/basic_stringbuf/sungetc/char/1.cc: New. * 27_io/basic_stringbuf/sync/char/1057.cc: New. * 27_io/basic_stringstream/1.cc: New. * 27_io/basic_stringstream/2.cc: New. * 27_io/basic_stringstream/3.cc: New. * 27_io/basic_stringstream/4.cc: New. * 27_io/basic_stringstream/rdbuf/char/2832.cc: New. * 27_io/basic_stringstream/str/char/1.cc: New. * 27_io/basic_stringstream/str/char/2.cc: New. * 27_io/basic_stringstream/str/char/3.cc: New. * 27_io/basic_stringstream/str/char/4.cc: New. * 27_io/fpos/1.cc: New. * 27_io/fpos/2.cc: New. * 27_io/fpos/3.cc: New. * 27_io/ios_base/callbacks/1.cc: New. * 27_io/ios_base/state/1.cc: New. * 27_io/ios_base/storage/1.cc: New. * 27_io/ios_base/storage/2.cc: New. * 27_io/ios_base/storage/3.cc: New. * 27_io/ios_base/sync_with_stdio/1.cc: New. * 27_io/ios_base/sync_with_stdio/2.cc: New. * 27_io/manipulators/adjustfield/char/1.cc: New. * 27_io/manipulators/adjustfield/char/2.cc: New. * 27_io/manipulators/basefield/char/1.cc: New. * 27_io/manipulators/standard/char/1.cc: New. * 27_io/manipulators/standard/char/2.cc: New. * 27_io/objects/char/1.cc: New. * 27_io/objects/char/2.cc: New. * 27_io/objects/char/2523-1_xin.cc: New. * 27_io/objects/char/2523-1_xin.in: New. * 27_io/objects/char/2523-2_xin.cc: New. * 27_io/objects/char/2523-2_xin.in: New. * 27_io/objects/char/3045.cc: New. * 27_io/objects/char/3647.cc: New. * 27_io/objects/char/3_xin.cc: New. * 27_io/objects/char/3_xin.in: New. * 27_io/objects/char/4_xin.cc: New. * 27_io/objects/char/4_xin.in: New. * 27_io/objects/char/5268.cc: New. * 27_io/objects/char/5280_xin.cc: New. * 27_io/objects/char/5280_xin.in: New. * 27_io/objects/char/6548_xin.cc: New. * 27_io/objects/char/6548_xin.in: New. * 27_io/objects/char/6648-1_xin.cc: New. * 27_io/objects/char/6648-1_xin.in: New. * 27_io/objects/char/6648-2_xin.cc: New. * 27_io/objects/char/6648-2_xin.in: New. * 27_io/objects/char/7744_xin.cc: New. * 27_io/objects/char/7744_xin.in: New. * 27_io/objects/wchar_t/1.cc: New. * 27_io/types/1.cc: New. * 27_io/types/2.cc: New. * data/filebuf_members-1.tst: New. * data/filebuf_members-1.txt: New. * data/filebuf_virtuals-1.tst: New. * data/filebuf_virtuals-1.txt: New. * data/filebuf_virtuals-2.tst: New. * data/filebuf_virtuals-3.tst: New. * data/ifstream_members-1.tst: New. * data/ifstream_members-1.txt: New. * data/ios_base_members_static-1.tst: New. * data/istream_extractor_other-1.tst: New. * data/istream_extractor_other-1.txt: New. * data/istream_extractor_other-2.tst: New. * data/istream_seeks-1.tst: New. * data/istream_seeks-1.txt: New. * data/istream_seeks-2.tst: New. * data/istream_seeks-3.tst: New. * data/istream_unformatted-1.tst: New. * data/istream_unformatted-1.txt: New. * data/ofstream_members-1.tst: New. * data/ostream_inserter_char-1.tst: New. * data/ostream_inserter_char-1.txt: New. * data/ostream_inserter_other-1.tst: New. * data/ostream_inserter_other-2.tst: New. * data/ostream_seeks-1.tst: New. 2003-04-09 Benjamin Kosnik <bkoz@redhat.com> * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove requirement that __mode must be strict input or output. * include/std/std_streambuf.h (basic_streambuf::setp): Set _M_out_lim. * include/std/std_sstream.h (basic_strinbuf::str): Zero length output string shouldn't core. (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn type. * include/bits/sstream.tcc: Adjust _M_really_sync bits here. * include/bits/istream.tcc (basic_istream::putback): Set gcount to zero. 2003-04-09 Benjamin Kosnik <bkoz@redhat.com> * testsuite/data: New directory. * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify to copy files from the testsuite data directory. (libstdc++-v3-list-sourcefiles): Add another test list filter, for testfiles containing _xin, which now means this is an interactive test and should be run with the interactive dejagnu hooks. * testsuite/Makefile.am: Remove testsuite_* files. * testsuite/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65421 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-03-31 Paolo Carlini <pcarlini@unitus.it>paolo2003-03-312-15/+2
| | | | | | | | | | | | | | | | | | | | * include/std/std_streambuf.h (_M_out_buf_size()): Remove. * include/bits/fstream.tcc (_M_allocate_internal_buffer): Don't set _M_out_end. (basic_filebuf::overflow): Replace _M_out_buf_size() with this->_M_out_cur && this->_M_out_cur < this->_M_out_end. * include/bits/sstream.tcc (basic_stringbuf::overflow): Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end; * include/bits/streambuf.tcc (basic_streambuf::sputc): Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end. (basic_streambuf::xsputn): Replace _M_out_buf_size() with _M_out_end - _M_out_cur. (__copy_streambufs): Likewise. * include/std/std_fstream.h (_M_set_determinate): Set _M_out_end here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65093 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-03-30 Paolo Carlini <pcarlini@unitus.it>paolo2003-03-301-1/+1
| | | | | | | | | | | | * include/bits/fstream.tcc (basic_filebuf::showmanyc, _M_convert_to_external, _M_really_overflow, seekoff): Fix test for synced buffer. * include/std/std_fstream.h (sync): Likewise. * src/fstream.cc (basic_filebuf<char>::_M_underflow_common, basic_filebuf<wchar_t>::_M_underflow_common): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65038 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-03-284-21/+30
| | | | | | | | | | | | | | | | | | | * include/std/std_sstream.h (basic_istringstream): Adjust initialization. (basic_ostringstream): Same. (basic_stringstream): Same. * include/std/std_fstream.h (basic_ifstream): Adjust initialization. (basic_ofstream): Same. (basic_fstream): Same. * include/std/std_ostream.h (basic_ostrem): Add protected ctor that does not call init. * include/std/std_istream.h (basic_istream): Same. (basic_iostream): Construct istream, ostream uninitialized, use init to initialize just once. Add protected ctor that does not call init. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64980 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-03-21 Jerry Quinn <jlquinn@optonline.net>jlquinn2003-03-221-1/+1
| | | | | | | | | | PR libstdc++/5730 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define. * include/std/std_complex.h (norm): Use faster, less accurate computation for builtin float types under --fast-math. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64701 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-03-09 Paolo Carlini <pcarlini@unitus.it>paolo2003-03-091-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Nathan Myers <ncm@cantrip.org> PR libstdc++/7744 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn, seekoff, seekpos): Add a boolean parameter __stdio. * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn, seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell, fseek/ftell, respectively), otherwise read (write, lseek, lseek, respectively). * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external, _M_really_overflow, seekoff): Use the boolean parameter in the calls. * include/std/std_fstream.h (sync): Likewise. * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise. * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert libstdc++/8399 commit involving isatty(0). * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove. (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove * configure.in: Remove call. * aclocal.m4: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. * testsuite/27_io/narrow_stream_objects.cc (test11): Add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64051 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-03-08 Jerry Quinn <jlquinn@optonline.net>jlquinn2003-03-092-0/+28
| | | | | | | | | | | | | | PR libstdc++/9561 * include/bits/basic_ios.h (_M_setstate): New. * include/bits/ostream.tcc (operator<<): Use it. * include/bits/istream.tcc (operator>>): Use it. * include/std/std_ostream.h (operator<<): Make friends. * include/std/std_istream.h (operator>>): Make friends. * testsuite/27_io/ostream_exception.cc, testsuite/27_io/istream_exception.cc: New tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64021 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-03-07 Paolo Carlini <pcarlini@unitus.it>paolo2003-03-071-3/+9
| | | | | | | | | | | | | | | | | | | | | | PR libstdc++/9182 * include/bits/fstream.tcc (_M_really_overflow): Check for _M_convert_to_external possible failures. * include/std/std_fstream.h (sync): Check _M_really_overflow return value and return -1 in case of failure. * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add. 2003-03-07 Paolo Carlini <pcarlini@unitus.it> PR libstdc++/9826 * include/bits/istream.tcc (operator>>(_CharT*), operator>>(basic_string&), ws): Pass a char_type to __ctype.is. * testsuite/27_io/stringstream.cc (test02): Add. * include/bits/istream.tcc (operator>>(_CharT*)): Assign a char_type to *__s. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63953 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-02-25 Phil Edwards <pme@gcc.gnu.org>pme2003-02-261-8/+104
| | | | | | | | | | | | | | * docs/doxygen/Intro.3: Update with new (proper) names. * docs/doxygen/TODO: Update. * docs/doxygen/run_doxygen: More comments, fix up man pages. Fake entries for standard typedefs. * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on. * docs/html/documentation.html: Top-level man page is now called C++Intro. * include/std/std_limits.h: Doxygenate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63433 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-02-24 Paolo Carlini <pcarlini@unitus.it>paolo2003-02-243-53/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nathan Myers <ncm@cantrip.org> PR libstdc++/9404, PR libstdc++/9701 (partial) (aka pptr == epptr implies overflow) * include/bits/fstream.tcc (_M_allocate_internal_buffer): Consistently, _M_out_end points to the end of the buffer just created. (overflow): Tweak to use _M_out_buf_size(). (_M_convert_to_external): The role of the old _M_out_end is now played by _M_out_lim. (_M_really_overflow): Likewise. (seekoff): Likewise. (setbuf): _M_out_end points to the end of the external buffer. * include/bits/sstream.tcc (overflow): Rewrote, taking into account the resolution of DR 169 (TC). (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim. (seekpos): Use _M_string.capacity(); tweak. * include/bits/streambuf.tcc (sputc, xsputn): Remove comments. * include/std/std_fstream.h (sync): The role of the old _M_out_end is now played by _M_out_lim. (_M_set_indeterminate): Use _M_set_determinate. (_M_set_determinate): _M_out_end is now _M_out_lim. (_M_is_indeterminate): Likewise. * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim. (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams, which have the information readily available as _M_string.capacity(); for ate and app modes, pass the string size to _M_really_sync. (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to point to the end of the buffer (i.e., epptr) and to the string end, respectively. * include/std/std_streambuf.h: tweak comments, add _M_out_lim, which points to the right limit of the used put area. (_M_out_cur_move): The role of the old _M_out_end is now played by _M_out_lim. (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter of the standard. (basic_streambuf()): Initialize _M_out_lim too. * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak. * testsuite/27_io/filebuf_virtuals.cc (test11): Add. * testsuite/27_io/stringbuf_virtuals.cc (test09): Add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63367 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-02-18 Paolo Carlini <pcarlini@unitus.it>paolo2003-02-181-1/+1
| | | | | | | | | | * include/std/std_sstream.h (str()): the size of the current string may be different from the initial one whenever _M_out_end > _M_out_beg. * testsuite/27_io/stringbuf_members.cc (test07): Add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63066 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-02-17 Paolo Carlini <pcarlini@unitus.it>paolo2003-02-171-4/+19
| | | | | | | | | | PR libstdc++/9580 * include/std/std_fstream.h: Declare underflow and uflow specializations, change generic definitions to do nothing. * src/fstream.cc: Add underflow and uflow specializations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63008 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-02-131-1/+4
| | | | | | | | | | | | | | | | * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define. * include/bits/basic_ios.tcc: Guard use of extern template. * include/std/std_iomanip.h: Same. * include/bits/streambuf.tcc: Same. * include/bits/stl_alloc.h: Same. * include/bits/locale_facets.tcc: Same. * include/bits/ostream.tcc: Same. * include/bits/istream.tcc: Same. * include/bits/fstream.tcc: Same. * include/bits/basic_string.tcc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62865 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-02-06 Paolo Carlini <pcarlini@unitus.it>paolo2003-02-072-2/+2
| | | | | | | | | | | | | PR libstdc++/9562 * include/std/std_istream.h (basic_istream::sentry::operator bool()): Make const. * include/std/std_ostream.h (basic_ostream::sentry::operator bool()): Likewise. * testsuite/27_io/istream_sentry.cc (test03): Add. * testsuite/27_io/ostream_sentry.cc: Add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62508 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-02-04 Jerry Quinn <jlquinn@optonline.net>bkoz2003-02-041-1/+10
| | | | | | | | | | | | | | * include/std/std_ostream.h (ostream::_M_write): Declare. * ostream.tcc (ostream::_M_write): Define. (basic_ostream::write): Use it. (operator<<(basic_ostream, _CharT)): Ditto. (operator<<(basic_ostream, char)): Ditto. (operator<<(basic_ostream, _CharT*)): Ditto. (operator<<(basic_ostream, char*)): Ditto. (operator<<(basic_ostream, basic_string)): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62399 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>pme2003-02-031-77/+40
| | | | | | | | | | | | | | | | | | | | Phil Edwards <pme@gcc.gnu.org> * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use numeric_limits for bits-per-word values. (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count): Use __builtin_popcountl instead. (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next, _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next): Use __builtin_ctzl instead. (_S_bit_count, _S_first_one): Remove. * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count. * src/Makefile.am (sources): Remove bitset.cc. * src/bitset.cc: Delete file. * src/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62335 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-common.c (builtin_define_float_constants): Definemmitchel2003-01-301-13/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__. * call.c (build_field_call): Use build_new_op, not build_opfncall. (prep_operand): New function. (build_new_op): Use it. Remove dead code. * class.c (pushclass): Change "modify" parameter type from int to bool. (currently_open_class): Use same_type_p, not pointer equality. (push_nested_class): Adjust calls to pushclass, remove modify parameter. * cp-tree.h (INTEGRAL_OR_ENUMERATION_TYPE_P): New macro. (pushclass): Change prototype. (push_nested_class): Likewise. (grokoptypename): Remove. (build_opfncall): Remove. (value_dependent_expression_p): Declare. (resolve_typename_type): Likewise. (resolve_typename_type_in_current_instantiation): Likewise. (enter_scope_of): Remove. (tsubst): Remove. (tsubst_expr): Likewise. (tsubst_copy): Likewise. (tsubst_copy_and_build): Likewise. * decl.c (warn_about_implicit_typename_lookup): Remove. (finish_case_label): Return error_mark_node for erroneous labels. (start_decl): Adjust calls to push_nested_class. (grokfndecl): Call push_scope/pop_scope around call to duplicate_decls. (grokdeclarator): Do not call tsubst. (start_function): Adjust calls to push_nested_class. * decl2.c (grok_array_decl): Use build_new_op, not build_opfncall. (check_classfn): Use push_scope/pop_scope around type comparisions. (grokoptypename): Remove. (push_sscope): Adjust call to push_nested_class. * error.c (dump_type): Show cv-qualification of typename types. * init.c (build_member_call): Use build_new_op, not build_opfncall. * method.c (build_opfncall): Remove. * parser.c (cp_parser): Add allow_non_constant_expression_p and non_constant_expression_p. (cp_parser_constant_expression): Adjust prototype. (cp_parser_resolve_typename_type): Remove. (cp_parser_non_constant_expression): New function. (cp_parser_non_constant_id_expression): Likewise. (cp_parser_new): Set allow_non_constant_expression_p and non_constant_expression_p. (cp_parser_primary_expression): Reject `this' and `va_arg' in constant-expressions. Note that dependent names aren't really constant. (cp_parser_postfix_expression): Reject conversions to non-integral types in constant-expressions. Neither are increments or decrements. (cp_parser_unary_expression): Reject increments and decrements in constant-expressions. (cp_parser_direct_new_declarator): Adjust call to cp_parser_constant_expression. (cp_parser_cast_expression): Reject conversions to non-integral types in constant-expressions. (cp_parser_assignment_expression): Rejects assignments in constant-expressions. (cp_parser_expression): Reject commas in constant-expressions. (cp_parser_labeled_statement): Adjust call to cp_parser_constant_expression. (cp_parser_direct_declarator): Simplify array bounds, even in templates, when they are non-dependent. Use resolve_typename_type, not cp_parser_resolve_typename_type. (cp_parser_class_head): Use resolve_typename_type, not cp_parser_resolve_typename_type. (cp_parser_member_declaration): Adjust call to cp_parser_constant_expression. (cp_parser_constant_initializer): Likewise. (cp_parser_constructor_declarator): Use resolve_typename_type, not cp_parser_resolve_typename_type. (cp_parser_late_parsing_default_args): Adjust call to push_nested_class. * pt.c (tsubst): Give it internal linkage. (tsubst_expr): Likewise. (tsubst_copy): Likewise. (tsubst_copy_and_build): Likewise. (push_access_scope_real): Likewise. (tsubst_friend_class): Likewise. (instantiate_class_template): Adjust call to pushclass. (value_dependent_expression_p): Give it external linkage. Robustify. (resolve_typename_type): New function. * semantics.c (finish_call_expr): Use build_new_op, not build_opfncall. (begin_constructor_declarator): Remove. (begin_class_definition): Adjust call to pushclass. (enter_scope_of): Remove. * typeck.c (comptypes): Resolve typename types as appropriate. (build_x_indirect_ref): Use build_new_op, not build_opfncall. (build_x_compound_expr): Likewise. (build_modify_expr): Likewise. (build_x_modify_expr): Likewise. * typeck2.c (build_x_arrow): Likewise. * g++.dg/parser/constant1.C: New test. * include/std/std_limits.h (numeric_limits<float>::has_infinity): Use __FLT_HAS_INIFINITY__ to initialize. (numeric_limits<float>::has_quiet_NaN): Likewise. (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__ to initialize. (numeric_limits<double>::has_quiet_NaN): Likewise. (numeric_limits<long double>::has_infinity): Use __LDBL_HAS_INIFINITY__ to initialize. (numeric_limits<long_double>::has_quiet_NaN): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62130 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/valarray_meta.h: Remove, split into ...nathan2003-01-241-2/+4
| | | | | | | | | | | * include/bits/valarray_before.h: ... this, and ... * include/bits/valarray_after.h: ... this. * include/std/std_valarray.h: Adjust. * include/Makefile.am (bits_headers): Adjust. * include/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61706 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-01-23 Petur Runolfsson <peturr02@ru.is>bkoz2003-01-231-17/+3
| | | | | | | | | | | | | | | | PR libstdc++/9322 * include/std/std_streambuf.h (basic_streambuf::basic_streambuf, basic_streambuf::~basic_streambuf, basic_streambuf::getloc, basic_streambuf::imbue): Remove _M_buf_locale_init use. * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise * testsuite/27_io/filebuf_virtuals.cc (test08): Add. * testsuite/27_io/streambuf_members.cc (test08): Add. * testsuite/27_io/stringbuf_virtuals.cc (test08): Add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61678 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-01-233-2/+2
| | | | | | | | | | | | | Revert include ordering. * config/locale/generic/c_locale.h: Add include guards. * config/locale/gnu/c_locale.h: Same. * include/bits/locale_classes.h: Remove cctype include. * include/std/std_iosfwd.h: Add c++locale.h, cctype includes. * include/std/std_fstream.h: Remove streambuf include. * include/std/std_sstream.h: Remove streambuf include. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61664 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-01-221-3/+15
| | | | | | | | | | | | | Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com> Mark Mitchell <mark@codesourcery.com> PR libstdc++/9269 * include/std/std_fstream.h (basic_filebuf::uflow): Declare. (basic_filebuf::underflow): Declare. Move definitions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61616 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>bkoz2003-01-224-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/locale_facets.h: Move non-facet classes requiring <string> to... * include/bits/locale_classes.h: New. * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h. * include/bits/Makefile.in: Regenerate. * include/bits/locale_facets.tcc (__convert_from_v): Move to... * config/locale/gnu/c_locale.h: ...here. * config/locale/generic/c_locale.h: Same. * include/bits/locale_facets.tcc: Move declarations to... * include/bits/locale_facets.h: ...here. * include/bits/basic_ios.h: Tweak includes accordingly. * include/std/std_sstream.h: Add streambuf include. * include/std/std_fstream.h: Ditto. * include/std/std_locale.h: Add locale_classes.h include. * include/std/std_iosfwd.h: Tweak. * src/concept-inst.cc: Add iterator include. * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_* bits as unexported in the future. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61593 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-tree.h (lang_type_class): Remove is_partial_instantiation.mmitchel2003-01-162-38/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (PARTIAL_INSTANTIATION_P): Remove. (IMPLICIT_TYPENAME_P): Likewise. (IMPLICIT_TYPENAME_TYPE_DECL_P): Likewise. (build_typename_type): Remove declaration. (parmlist_is_exprlist): Likewise. * decl.c (build_typename_type): Make it static, remove third parameter. (push_class_binding): Don't do implicit typename stuff. (make_typename_type): Likewise. (lookup_name_real): Likewise. (grokdeclarator): Don't try to convert declarations into initializations. Don't do implicit typename stuff. (parmlist_is_exprlist): Remove. (xref_basetypes): Simplify. * decl2.c (grokfield): Don't try to convert declarations into initializations. (build_anon_union_vars): Do this while processing templates, too. (finish_anon_union): Likewise. * error.c (dump_type): Remove implicit typename handling. * parser.c (cp_parser_diagnose_invalid_type_name): New method. (cp_parser_primary_expression): Correct handling of names not found by unqualified name lookup in templates. (cp_parser_nested_name_specifier_opt): Avoid checking dependency of types when possible. (cp_parser_simple_declaration): Complain intelligently about some invalid declarations. (cp_parser_member_declaration): Likewise. (cp_parser_constructor_declarator_p): Don't check when we're in a function scope. * pt.c (instantiate_class_template): Remove PARTIAL_INSTANTIATION_P gunk. * search.c (lookup_field_r): Don't build implicit typenames. (marked_pushdecls_p): Don't enter dependent base types. (unmarked_pushdecls_p): Likewise. * semantics.c (begin_class_definition): Remove implicit typename stuff. * config/locale/gnu/messages_members.h: Use this-> to refer to unqualified members of base clasess. * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise. * include/bits/codecvt.h: Likewise. * include/bits/deque.tcc: Likewise. * include/bits/fstream.tcc: Likewise. * include/bits/istream.tcc: Likewise. * include/bits/list.tcc: Likewise. * include/bits/locale_facets.h: Likewise. * include/bits/ostream.tcc: Likewise. * include/bits/sstream.tcc: Likewise. * include/bits/stl_bvector.h: Likewise. * include/bits/stl_deque.h: Likewise. * include/bits/stl_list.h: Likewise. * include/bits/stl_tree.h: Likewise. * include/bits/stl_vector.h: Likewise. * include/bits/vector.tcc: Likewise. * include/ext/ropeimpl.h: Likewise. * include/ext/stdio_filebuf.h: Likewise. * include/ext/stl_rope.h: Likewise. * include/std/std_fstream.h: Likewise. * include/std/std_sstream.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61403 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-12-29 Phil Edwards <pme@gcc.gnu.org>pme2002-12-301-8/+10
| | | | | | | * include/std/std_bitset.h: Better comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60614 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/locale/gnu/ctype_members.ccmmitchel2002-12-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | (ctype<wchar_t>::_M_convert_to_wmask): Remove stray semicolon. * config/locale/gnu/monetary_members.cc (moneypunct<wchar_t, true>::_M_initialize_moneypunct): Avoid defining classes in static_cast. (moneypunct<wchar_t, false>::_M_initialize_moneypunct): Likewise. * config/locale/gnu/numeric_members.cc (numpunct<wchar_t, false>::_M_initialize_numpunct): Likewise. * include/bits/stl_deque.h (operator-): Insert typename where required. * include/bits/stl_multiset.h (multiset): Remove stray semicolon. * include/bits/stl_set.h (set): Likewise. * include/bits/valarray_meta.h (bits/slice_array.h): Include it. * include/std/std_fstream.h (basic_fstream::open): Use this-> to avoid Koenig lookup. (basic_fstream::close): Likewise. * libsupc++/new (operator delete): Remove stray semicolon. * libsupc++/new (operator delete[]): Likewise. * libsupc++/tinfo.cc: Likewise. * src/stdexcept.c (logic_error::~logic_error): Likewise. (runtime_error::~runtime_error): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60547 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-12-26 Phil Edwards <pme@gcc.gnu.org>pme2002-12-271-14/+29
| | | | | | | | | | | | | | | * include/std/std_bitset.h (_Base_bitset::_M_do_left_shift, _Base_bitset::_M_do_right_shift): Expect a non-zero shift. (bitset::operator<<=, bitset::operator>>=): When shifting more bits than are in the bitset, zero memory rather than segfault. (operator>>(basic_istream,bitset): Only call setstate once, after all work has been done. * testsuite/23_containers/bitset_members.cc (test03): New test. * testsuite/23_containers/bitset_shift.cc (test02): New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60533 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-12-16 Paolo Carlini <pcarlini@unitus.it>paolo2002-12-161-8/+8
| | | | | | | | | | | | | | | | | | PR libstdc++/8949 * include/std/std_limits.h (struct numeric_limits<short>, struct numeric_limits<unsigned short>, struct numeric_limits<int>, struct numeric_limits<unsigned int>, struct numeric_limits<long>, struct numeric_limits<unsigned long>, struct numeric_limits<long long>, struct numeric_limits<unsigned long long>): According to 18.2.1.2,53 and 18.2.1.5,1 is_iec559 shall be false. * testsuite/18_support/numeric_limits.cc: Add test04. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60181 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge basic-improvements-branch to trunkzack2002-12-164-4/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60174 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-11-25 Wolfgang Bangerth <bangerth@ticam.utexas.edu>paolo2002-11-251-1/+1
| | | | | | | | | | * include/std/std_complex.h (operator<<(basic_ostream&, const complex&)): Prefer 'x' to "x" for efficiency sake. * src/locale.cc (locale::locale(const char*)): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59465 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-11-21 Phil Edwards <pme@gcc.gnu.org>pme2002-11-218-156/+1927
| | | | | | | | | | | | | | * docs/doxygen/TODO: Note change in clause 27 docs. * include/bits/basic_ios.h, include/bits/fpos.h, include/bits/ios_base.h, include/bits/stl_deque.h, include/bits/stl_iterator_base_types.h, include/std/std_fstream.h, include/std/std_iomanip.h, include/std/std_iosfwd.h, include/std/std_iostream.h, include/std/std_istream.h, include/std/std_ostream.h, include/std/std_sstream.h, include/std/std_streambuf.h: Doxygenate all I/O entities. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59325 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-11-05 Jonathan Wakely <cow@compsoc.man.ac.uk>paolo2002-11-061-1/+1
| | | | | | | | | | * include/std/std_sstream.h (basic_stringbuf::str(const __string_type&)): Prefer data() to c_str() thus avoiding assigning the unnecessary NULL-terminator. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58844 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-11-05 Paolo Carlini <pcarlini@unitus.it>paolo2002-11-051-1/+2
| | | | | | | | | | | | PR libstdc++/8466 * include/std/std_sstream.h (basic_stringbuf::str(const __string_type&)): Cannot use simple assignment since the COW-nature of v3 basic_string is not taken into account in basic_stringbuf. * testsuite/27_io/stringstream_members.cc: Add test04 from PR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58838 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-11-01 Benjamin Kosnik <bkoz@redhat.com>bkoz2002-11-013-7/+12
| | | | | | | | | | | | | | | | | PR libstdc++/8318 * include/std/std_iostream.h: Tweak. * include/std/std_iosfwd.h: Add _GLIBCPP_USE_WCHAR_T. * include/std/std_iomanip.h: Same. * include/bits/stringfwd.h: Same. * include/bits/basic_string.tcc: Same. * include/bits/sstream.tcc: Same. * include/bits/fstream.tcc: Same. * include/bits/basic_ios.tcc: Same. * include/bits/streambuf.tcc: Same. * include/bits/locale_facets.tcc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58720 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/std_limits.h (numeric_limits<T>::is_iec559): Falserth2002-09-271-3/+6
| | | | | | | if denormals are not supported. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57595 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-25 Benjamin Kosnik <bkoz@redhat.com>bkoz2002-09-261-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/Makefile.am (target_headers): Remove cpu_limits.h. * include/Makefile.in: Regenerate. * configure.in (CPU_LIMITS_INC_SRCDIR): Remove * configure: Regenerate. * configure.target (CPULIMITS): Remove. * include/std/std_limits.h: Remove cpu_limits.h include. * config/os/solaris/solaris2.7/os_defines.h (__glibcpp_long_bits): Remove. * config/os/irix/irix6.5/os_defines.h (__glibcpp_long_double_bits): Remove. (__glibcpp_wchar_t_bits): Remove. (__glibcpp_long_bits): Remove. * config/os/irix/irix5.2/os_defines.h (__glibcpp_long_double_bits): Remove. (__glibcpp_long_bits): Remove. * config/os/hpux/os_defines.h (__glibcpp_wchar_t_is_signed): Remove. * config/os/bsd/freebsd/os_defines.h: (__glibcpp_long_double_bits): Remove. * config/os/aix/os_defines.h (__glibcpp_wchar_t_bits): Remove. (__glibcpp_wchar_t_is_signed): Remove. (__glibcpp_long_bits): Remove. * config/os/gnu-linux/os_defines.h (__glibcpp_long_bits): Remove. (__glibcpp_long_double_bits): Remove. * config/os/osf/osf5.0/cpu_limits.h: Remove. * config/cpu/alpha/cpu_limits.h: Remove. * config/cpu/arm/cpu_limits.h: Remove. * config/cpu/cris/cpu_limits.h: Remove. * config/cpu/generic/cpu_limits.h: Remove. * config/cpu/generic/limits.h: Remove. * config/cpu/ia64/cpu_limits.h: Remove. * config/cpu/m68k/cpu_limits.h: Remove. * config/cpu/mmix/cpu_limits.h: Remove. * config/cpu/powerpc/cpu_limits.h: Remove. * config/cpu/S390/cpu_limits.h: Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57524 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/std_limits.h (numeric_limits<unsigned char>::digits):mmitchel2002-09-251-1/+1
| | | | | | | Fix typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57507 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/std_limits.h (__glibcpp_plain_char_is_signed,rth2002-09-231-525/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __glibcpp_wchar_t_is_signed, __glibcpp_s8_max, __glibcpp_s8_min, __glibcpp_s8_digits, __glibcpp_s8_digits10, __glibcpp_u8_min, __glibcpp_u8_max, __glibcpp_u8_digits, __glibcpp_u8_digits10, __glibcpp_s16_max, __glibcpp_s16_min, __glibcpp_s16_digits, __glibcpp_s16_digits10, __glibcpp_u16_min, __glibcpp_u16_max, __glibcpp_u16_digits, __glibcpp_u16_digits10, __glibcpp_s32_max, __glibcpp_s32_min, __glibcpp_s32_digits, __glibcpp_s32_digits10, __glibcpp_u32_min, __glibcpp_u32_max, __glibcpp_u32_digits, __glibcpp_u32_digits10, __glibcpp_s64_max, __glibcpp_s64_min, __glibcpp_s64_digits, __glibcpp_s64_digits10, __glibcpp_u64_min, __glibcpp_u64_max, __glibcpp_u64_digits, __glibcpp_u64_digits10, __glibcpp_bool_digits, __glibcpp_signed_char_min, __glibcpp_signed_char_max, __glibcpp_signed_char_digits, __glibcpp_signed_char_digits10, __glibcpp_unsigned_char_min, __glibcpp_unsigned_char_max, __glibcpp_unsigned_char_digits, __glibcpp_unsigned_char_digits10, __glibcpp_char_min, __glibcpp_char_max, __glibcpp_char_digits, __glibcpp_char_digits10, __glibcpp_signed_short_min, __glibcpp_signed_short_max, __glibcpp_signed_short_digits, __glibcpp_signed_short_digits10, __glibcpp_unsigned_short_min, __glibcpp_unsigned_short_max, __glibcpp_unsigned_short_digits, __glibcpp_unsigned_short_digits10, __glibcpp_signed_int_min, __glibcpp_signed_int_max, __glibcpp_signed_int_digits, __glibcpp_signed_int_digits10, __glibcpp_unsigned_int_min, __glibcpp_unsigned_int_max, __glibcpp_unsigned_int_digits, __glibcpp_unsigned_int_digits10, __glibcpp_signed_long_min, __glibcpp_signed_long_max, __glibcpp_unsigned_long_digits, __glibcpp_unsigned_long_digits10, __glibcpp_signed_long_long_min, __glibcpp_signed_long_long_max, __glibcpp_signed_long_long_digits, __glibcpp_signed_long_long_digits10, __glibcpp_wchar_t_min, __glibcpp_wchar_t_max, __glibcpp_wchar_t_digits, __glibcpp_wchar_t_digits10): Remove. (__glibcpp_byte, __glibcpp_word_bits, __glibcpp_word): Remove. (__float_storage, __double_storage, __long_double_storage): Remove. (__glibcpp_signed, __glibcpp_min, __glibcpp_max): New. (__glibcpp_digits, __glibcpp_digits10): New. (numeric_limits<T>::min): Use __glibcpp_min or limits.h builtins. (numeric_limits<T>::max): Use __glibcpp_max or limits.h builtins. (numeric_limits<T>::is_signed, T=char,wchar_t): Use __glibcpp_signed. (numeric_limits<T>::digits): Use __glibcpp_digits. (numeric_limits<T>::digits10): Use __glibcpp_digits10. * testsuite/18_support/numeric_limits.cc (test03): Don't use __glibcpp_s8_digits10 et al; check vs the installed versions of digits10 for particular sizes. * include/std/std_limits.h (__glibcpp_float_is_modulo, __glibcpp_double_is_modulo, __glibcpp_long_double_is_modulo): Kill. (numeric_limits<T>::is_modulo, T floating): Use false. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57434 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/std_limits.h (__glibcpp_integral_traps): New.rth2002-09-221-111/+29
| | | | | | | | | | | | | | | | | | | | | | (__glibcpp_char_traps, __glibcpp_short_traps, __glibcpp_int_traps, __glibcpp_long_traps, __glibcpp_wchar_t_traps, __glibcpp_long_long_traps, __glibcpp_plain_char_traps, __glibcpp_signed_char_traps, __glibcpp_unsigned_char_traps, __glibcpp_signed_short_traps, __glibcpp_unsigned_short_traps, __glibcpp_signed_int_traps, __glibcpp_unsigned_int_traps, __glibcpp_signed_long_traps, __glibcpp_unsigned_long_traps, __glibcpp_signed_long_long_traps, __glibcpp_unsigned_long_long_traps, __glibcpp_char_is_modulo, __glibcpp_signed_char_is_modulo, __glibcpp_signed_short_is_modulo, __glibcpp_signed_int_is_modulo, __glibcpp_signed_long_is_modulo, __glibcpp_signed_long_long_is_modulo, __glibcpp_wchar_t_is_modulo, __glibcpp_float_is_bounded, __glibcpp_double_is_bounded, __glibcpp_long_double_is_bounded): Kill. (numeric_limits<T>::traps, T integral): Use __glibcpp_integral_traps. (numeric_limits<T>::is_modulo, T integral): Use true. (numeric_limits<T>::is_bounded, T floating): Use true. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57414 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/std_limits.h (__glibcpp_f32_is_iec559,rth2002-09-221-80/+3
| | | | | | | | | | | | __glibcpp_f64_is_iec559, __glibcpp_f80_is_iec559, __glibcpp_f96_is_iec559, __glibcpp_f128_is_iec559, __glibcpp_float_is_iec559, __glibcpp_double_is_iec559, __glibcpp_long_double_is_iec559): Remove. (numeric_limits<float>::is_iec559): Use has_infinity & has_quiet_NaN. (numeric_limits<double>, numeric_limits<long double>): Similarly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57413 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/std_limits.h (__glibcpp_f32_round_error,rth2002-09-221-45/+9
| | | | | | | | | | | | | | | __glibcpp_f64_round_error, __glibcpp_f80_round_error, __glibcpp_f96_round_error, __glibcpp_f128_round_error, __glibcpp_float_round_error, __glibcpp_double_round_error, __glibcpp_long_double_round_error, __glibcpp_float_round_style, __glibcpp_double_round_style, __glibcpp_long_double_round_style): Kill. (numeric_limits<char>::epsilon, round_error): Use constant 0. (numeric_limits<float>::round_error): Use constant 0.5. (numeric_limits<float>::round_style): Use round_to_nearest. (numeric_limits<double>, numeric_limits<long double>): Similarly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57412 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/rth2002-09-171-194/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New. (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New. * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New. (__builtin_nans, __builtin_nansf, __builtin_nansl): New. * builtins.c (fold_builtin_nan): New. (fold_builtin): Call it. * real.c (real_nan): Parse a non-empty string. (round_for_format): Fix NaN significand truncation. * real.h (real_nan): Return bool. * doc/extend.texi: Document new builtins. libstdc++/ * include/std/std_limits.h (__glibcpp_f32_QNaN_bytes, __glibcpp_f32_has_QNaN, __glibcpp_f32_SNaN_bytes, __glibcpp_f32_has_SNaN, __glibcpp_f64_QNaN_bytes, __glibcpp_f64_has_QNaN, __glibcpp_f64_SNaN_bytes, __glibcpp_f64_has_SNaN, __glibcpp_f80_QNaN_bytes, __glibcpp_f80_has_QNaN, __glibcpp_f80_SNaN_bytes, __glibcpp_f80_has_SNaN, __glibcpp_f96_QNaN_bytes, __glibcpp_f96_has_QNaN, __glibcpp_f96_SNaN_bytes, __glibcpp_f96_has_SNaN, __glibcpp_f128_QNaN_bytes, __glibcpp_f128_has_QNaN, __glibcpp_f128_SNaN_bytes, __glibcpp_f128_has_SNaN, __glibcpp_float_QNaN_bytes, __glibcpp_float_has_QNaN, __glibcpp_float_SNaN_bytes, __glibcpp_float_has_SNaN, __glibcpp_double_QNaN_bytes, __glibcpp_double_has_QNaN, __glibcpp_double_SNaN_bytes, __glibcpp_double_has_SNaN, __glibcpp_long_double_QNaN_bytes, __glibcpp_long_double_has_QNaN, __glibcpp_long_double_SNaN_bytes, __glibcpp_long_double_has_SNaN): Remove. (__glibcpp_f128_is_iec559): True if IEEE. (__glibcpp_float_QNaN, __glibcpp_float_SNaN): Remove. (__glibcpp_double_QNaN, __glibcpp_double_SNaN): Remove. (__glibcpp_long_double_QNaN, __glibcpp_long_double_SNaN): Remove. (std::numeric_limits<float>::has_quiet_NaN): Use __builtin_nanf. (std::numeric_limits<float>::has_signaling_NaN): Mirror has_quiet_NaN. (std::numeric_limits<float>::quiet_NaN): Use __builtin_nanf. (std::numeric_limits<float>::signaling_NaN): Use __builtin_nansf. (std::numeric_limits<double>): Similarly. (std::numeric_limits<long double>): Similarly. * src/limits.cc (__glibcpp_float_QNaN, __glibcpp_float_SNaN): Remove. (__glibcpp_double_QNaN, __glibcpp_double_SNaN): Remove. (__glibcpp_long_double_QNaN, __glibcpp_long_double_SNaN): Remove. * testsuite/18_support/numeric_limits.cc (test_infinity): New. (test_denorm_min, test_qnan, test_is_iec559): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57221 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/rth2002-09-161-92/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__. libstdc++/ * include/std/std_limits.h (__glibcpp_f32_denorm_min_bytes, __glibcpp_f32_has_denorm, __glibcpp_f64_denorm_min_bytes, __glibcpp_f64_has_denorm, __glibcpp_f80_denorm_min_bytes, __glibcpp_f80_has_denorm, __glibcpp_f96_denorm_min_bytes, __glibcpp_f96_has_denorm, __glibcpp_f128_denorm_min_bytes, __glibcpp_f128_has_denorm, __glibcpp_float_denorm_min_bytes, __glibcpp_float_has_denorm, __glibcpp_double_denorm_min_bytes, __glibcpp_double_has_denorm, __glibcpp_long_double_denorm_min_bytes, __glibcpp_long_double_has_denorm): Remove. (__glibcpp_float_denorm_min, __glibcpp_double_denorm_min, __glibcpp_long_double_denorm_min): Remove. (std::numeric_limits<float>::has_denorm): Use __FLT_DENORM_MIN__. (std::numeric_limits<float>::denorm_min): Likewise. (std::numeric_limits<double>): Similarly. (std::numeric_limits<long double>): Similarly. * src/limits.cc (__glibcpp_float_denorm_min, __glibcpp_double_denorm_min, __glibcpp_long_double_denorm_min): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57200 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/std_limits.h (__glibcpp_f32_infinity_bytes,rth2002-09-041-88/+9
| | | | | | | | | | | | | | | | | | | __glibcpp_f32_has_infinity, __glibcpp_f64_infinity_bytes, __glibcpp_f64_has_infinity, __glibcpp_f80_infinity_bytes, __glibcpp_f80_has_infinity, __glibcpp_f96_infinity_bytes, __glibcpp_f96_has_infinity, __glibcpp_f128_infinity_bytes, __glibcpp_f128_has_infinity, __glibcpp_float_infinity_bytes, __glibcpp_float_has_infinity, __glibcpp_double_infinity_bytes, __glibcpp_double_has_infinity, __glibcpp_long_double_infinity_bytes, __glibcpp_long_double_has_infinity): Remove. (std::numeric_limits<float>, std::numeric_limits<double>, std::numeric_limits<long double>): Use __builtin_huge_val to implement has_infinity and infinity(). * src/limits.cc (__glibcpp_float_infinity, __glibcpp_double_infinity, __glibcpp_long_double_infinity): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56821 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/std_limits.h (__glibcpp_f32_min, __glibcpp_f32_max,rth2002-09-031-217/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __glibcpp_f32_digits, __glibcpp_f32_digits10, __glibcpp_f32_radix, __glibcpp_f32_epsilon, __glibcpp_f32_min_exponent, __glibcpp_f32_min_exponent10, __glibcpp_f32_max_exponent, __glibcpp_f32_max_exponent10, __glibcpp_f64_min, __glibcpp_f64_max, __glibcpp_f64_digits, __glibcpp_f64_digits10, __glibcpp_f64_radix, __glibcpp_f64_min_exponent, __glibcpp_f64_min_exponent10, __glibcpp_f64_max_exponent, __glibcpp_f64_max_exponent10, __glibcpp_f80_min, __glibcpp_f80_max, __glibcpp_f80_digits, __glibcpp_f80_digits10, __glibcpp_f80_radix, __glibcpp_f80_epsilon, __glibcpp_f80_min_exponent, __glibcpp_f80_min_exponent10, __glibcpp_f80_max_exponent, __glibcpp_f80_max_exponent10, __glibcpp_f96_min, __glibcpp_f96_max, __glibcpp_f96_digits, __glibcpp_f96_digits10, __glibcpp_f96_radix, __glibcpp_f96_epsilon, __glibcpp_f96_min_exponent, __glibcpp_f96_min_exponent10, __glibcpp_f96_max_exponent, __glibcpp_f96_max_exponent10, __glibcpp_f128_min, __glibcpp_f128_max, __glibcpp_f128_digits, __glibcpp_f128_digits10, __glibcpp_f128_radix, __glibcpp_f128_epsilon, __glibcpp_f128_min_exponent, __glibcpp_f128_min_exponent10, __glibcpp_f128_max_exponent, __glibcpp_f128_max_exponent10, __glibcpp_float_min, __glibcpp_float_max, __glibcpp_float_digits, __glibcpp_float_digits10, __glibcpp_float_radix, __glibcpp_float_epsilon, __glibcpp_float_min_exponent, __glibcpp_float_min_exponent10, __glibcpp_float_max_exponent, __glibcpp_float_max_exponent10, __glibcpp_double_min, __glibcpp_double_max, __glibcpp_double_digits, __glibcpp_double_digits10, __glibcpp_double_radix, __glibcpp_double_epsilon, __glibcpp_double_min_exponent, __glibcpp_double_min_exponent10, __glibcpp_double_max_exponent, __glibcpp_double_max_exponent10, __glibcpp_long_double_min, __glibcpp_long_double_max, __glibcpp_long_double_digits, __glibcpp_long_double_digits10, __glibcpp_long_double_radix, __glibcpp_long_double_epsilon, __glibcpp_long_double_min_exponent, __glibcpp_long_double_min_exponent10, __glibcpp_long_double_max_exponent, __glibcpp_long_double_max_exponent10): Remove macros. (std::numeric_limits<float>, std::numeric_limits<double>, std::numeric_limits<long double>): Use protected float.h macros. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56770 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/gdr2002-08-281-77/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net> * c-common.c (builtin_define_type_precision): New function. (cb_register_builtins): Use it. Define __WCHAR_UNSIGNED__ is wchar_t is unsigned in C++. * doc/cpp.texi (Common Predefined Macros): Document __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__, __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__, __DOUBLE_BIT__, __LONG_DOUBLE_BIT__. libstdc++-v3/ 2002-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net> * include/std/std_limits.h (__glibcpp_char_bits, __glibcpp_short_bits, __glibcpp_int_bits, __glibcpp_long_bits, __glibcpp_long_long_bits, __glibcpp_float_bits, __glibcpp_double_bits, __glibcpp_long_double_bits): Remove. Use compiler predifined macros. (__glibcpp_wchar_t_is_signed): Define based on compiler predefined __WCHAR_UNSIGNED__. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56646 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/std_limits.h (__glibcpp_f32_infinity_bytes,gdr2002-08-271-114/+418
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __glibcpp_f32_has_infinity, __glibcpp_f32_QNaN_bytes, __glibcpp_f32_has_QNaN, __glibcpp_f32_SNaN_bytes, __glibcpp_f32_has_SNaN, __glibcpp_f32_denorm_min_bytes, __glibcpp_f32_has_denorm, __glibcpp_f32_is_iec559, __glibcpp_f64_infinity_bytes, __glibcpp_f64_has_infinity, __glibcpp_f64_QNaN_bytes, __glibcpp_f64_has_QNaN, __glibcpp_f64_SNaN_bytes, __glibcpp_f64_has_SNaN, __glibcpp_f64_denorm_min_bytes, __glibcpp_f64_has_denorm, __glibcpp_f64_is_iec559, __glibcpp_f80_infinity_bytes, __glibcpp_f80_has_infinity, __glibcpp_f80_QNaN_bytes, __glibcpp_f80_has_QNaN, __glibcpp_f80_SNaN_bytes, __glibcpp_f80_has_SNaN, __glibcpp_f80_denorm_min_bytes, __glibcpp_f80_has_denorm, __glibcpp_f80_is_iec559, __glibcpp_f96_infinity_bytes, __glibcpp_f96_has_infinity, __glibcpp_f96_QNaN_bytes, __glibcpp_f96_has_QNaN, __glibcpp_f96_SNaN_bytes, __glibcpp_f96_has_SNaN, __glibcpp_f96_denorm_min_bytes, __glibcpp_f96_has_denorm, __glibcpp_f96_is_iec559, __glibcpp_f128_infinity_bytes, __glibcpp_f128_has_infinity, __glibcpp_f128_QNaN_bytes, __glibcpp_f128_has_QNaN, __glibcpp_f128_SNaN_bytes, __glibcpp_f128_has_SNaN, __glibcpp_f128_denorm_min_bytes, __glibcpp_f128_has_denorm, __glibcpp_f128_is_iec559, __glibcpp_float_infinity_bytes, __glibcpp_float_has_infinity, __glibcpp_float_QNaN_bytes, __glibcpp_float_has_QNaN, __glibcpp_float_SNaN_bytes, __glibcpp_float_has_SNaN, __glibcpp_float_denorm_min_bytes, __glibcpp_float_has_denorm, __glibcpp_float_is_iec559, __glibcpp_double_infinity_bytes, __glibcpp_double_has_infinity, __glibcpp_double_QNaN_bytes, __glibcpp_double_has_QNaN, __glibcpp_double_SNaN_bytes, __glibcpp_double_has_SNaN, __glibcpp_double_denorm_min_bytes, __glibcpp_double_has_denorm, __glibcpp_double_is_iec559, __glibcpp_long_double_infinity_bytes, __glibcpp_long_double_has_infinity, __glibcpp_long_double_QNaN_bytes, __glibcpp_long_double_has_QNaN, __glibcpp_long_double_SNaN_bytes, __glibcpp_long_double_has_SNaN, __glibcpp_long_double_denorm_min_bytes, __glibcpp_long_double_has_denorm, __glibcpp_long_double_is_iec559: New macros. (__glibcpp_word_bits, __glibcpp_word): Likewise. (__glibcpp_byte): New typedef. (__float_storage, __double_storage, __long_double_storage): New types. (__glibcpp_float_infinity, __glibcpp_float_QNaN, __glibcpp_float_SNaN, __glibcpp_float_denorm_min): Now objects. Declare. (__glibcpp_double_infinity, __glibcpp_double_QNaN, __glibcpp_double_SNaN, __glibcpp_double_denorm_min): Likewise. (__glibcpp_long_double_infinity, __glibcpp_long_double_QNaN, __glibcpp_long_double_SNaN, __glibcpp_long_double_denorm_min): Likewise. * src/limits.cc (__glibcpp_float_infinity, __glibcpp_float_QNaN, __glibcpp_float_SNaN, __glibcpp_float_denorm_min): Define. (__glibcpp_double_infinity, __glibcpp_double_QNaN, __glibcpp_double_SNaN, __glibcpp_double_denorm_min): Likewise. (__glibcpp_long_double_infinity, __glibcpp_long_double_QNaN, __glibcpp_long_double_SNaN, __glibcpp_long_double_denorm_min): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56613 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud