summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* 2000-12-20 Benjamin Kosnik <bkoz@fillmore.constant.com>bkoz2000-12-202-0/+124
| | | | | | | | | | | | | | | | | | * testsuite/17_intro/headers_c.cc (main): New file. * acinclude.m4 (SECTION_FLAGS): Only set if --enable-debug is not passed. (OPT_LDFLAGS): And here. * aclocal.m4: Regenerate. * configure: Regenerate. 2000-12-19 Curtis Janssen <cljanss@ca.sandia.gov> * src/ios.cc (ios_base::_M_grow_words(int ix)): Fix libstdc++/1089. * testsuite/27_io/ios_base_storage.cc (test01): New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38392 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-19 Benjamin Kosnik <bkoz@fillmore.constant.com>bkoz2000-12-191-2/+104
| | | | | | | | | | | | | | | | * configure.in: Don't turn on long long by default. * configure: Regenerate. * include/c/bits/std_cstdio.h: Remove c++config.h include. * src/locale.cc: Formatting tweaks. * testsuite/22_locale/ctype.cc (char<unsigned char>): Provide member functions. 2000-12-19 Loren J. Rittle <ljrittle@acm.org> * testsuite/22_locale/ctype.cc (test01): Correct ~ operator usage. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38388 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-19 Benjamin Kosnik <bkoz@fillmore.redhat.com>bkoz2000-12-191-5/+17
| | | | | | | | | | | | | | | | | | | | | * config/os/solaris/solaris2.5/bits/ctype_inline.h (is): Same. * config/os/solaris/solaris2.6/bits/ctype_inline.h (is): Same. * config/os/solaris/solaris2.7/bits/ctype_inline.h (is): Same. * config/os/newlib/bits/ctype_inline.h (is): Same. * config/os/irix/bits/ctype_inline.h (is): Same. * config/os/bsd/netbsd/bits/ctype_inline.h (is): Same. * config/os/bsd/freebsd/bits/ctype_inline.h (is): Same. * config/os/aix/bits/ctype_inline.h (is): Same. * config/os/gnu-linux/bits/ctype_inline.h (is): Revert. * config/os/generic/bits/ctype_inline.h (is): Non-table based implementation. * testsuite/22_locale/ctype_char_members.cc (test01): Use binary operator correctly. (test01): Check 'A' for alnum, upper, alpha. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38385 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-13 Benjamin Kosnik <bkoz@redhat.com>bkoz2000-12-142-10/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/os/generic/bits/ctype_base.h (ctype_base): Consistency with linux. * config/os/generic/bits/ctype_inline.h (is): Same. * config/os/solaris/solaris2.5/bits/ctype_inline.h (is): Same. * config/os/solaris/solaris2.5/bits/ctype_base.h: Same. * config/os/solaris/solaris2.6/bits/ctype_inline.h (is): Same. * config/os/solaris/solaris2.6/bits/ctype_base.h: Same. * config/os/solaris/solaris2.7/bits/ctype_inline.h (is): Same. * config/os/solaris/solaris2.7/bits/ctype_base.h: Same. * config/os/irix/bits/ctype_inline.h (is): Same. * config/os/irix/bits/ctype_base.h (ctype_base): Same. * config/os/aix/bits/ctype_inline.h (is): Same. * config/os/aix/bits/ctype_base.h (ctype_base): Same. * config/os/bsd/netbsd/bits/ctype_inline.h (is): Same. * config/os/bsd/netbsd/bits/ctype_base.h (ctype_base): Same. * config/os/bsd/freebsd/bits/ctype_base.h (ctype_base): Same. * config/os/bsd/freebsd/bits/ctype_inline.h (is): Same. * config/os/newlib/bits/ctype_inline.h (is): Same. * config/os/newlib/bits/ctype_base.h (ctype_base): Same. * testsuite/22_locale/ctype_char_members.cc (test01): Add tests, fix. * testsuite/22_locale/ctype.cc (test01): Add tests for ctype_base::mask bitmask features. * src/locale.cc: Define const static data for ctype_base. * config/os/gnu-linux/bits/ctype_base.h (ctype_base): Make ctype_base::mask type an integer type, not an enum. * config/os/gnu-linux/bits/ctype_inline.h (is): Implement correctly. * include/bits/locale_facets.h: Tweaks. * include/bits/ios_base.h: Formatting tweaks. * docs/html/17_intro/C++STYLE: Add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38243 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/20_util/auto_ptr.cc (test07): Remove test that triesjason2000-12-101-6/+6
| | | | | | | | to copy-initialize an auto_ptr<Base> from an auto_ptr<Derived>; it isn't supposed to work anymore. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38171 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-06 Benjamin Kosnik <bkoz@kredhat.com>bkoz2000-12-071-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/locale_facets.h (ctype): Remove _Ctype_nois and _Ctype and replace with common __ctype_abstract_base. (ctype<wchar_t>::_M_convert_to_wmask): Move to locale.cc. * config/os/gnu-linux/bits/ctype_noninline.h (ctype<char>::ctype): And here. * config/os/solaris/solaris2.7/bits/ctype_noninline.h (ctype): Same. * config/os/solaris/solaris2.6/bits/ctype_noninline.h (ctype): Same. * config/os/solaris/solaris2.5/bits/ctype_noninline.h (ctype): Same. * config/os/newlib/bits/ctype_noninline.h (ctype): Same. * config/os/irix/bits/ctype_noninline.h (ctype): Same. * config/os/hpux/bits/ctype_noninline.h (ctype): Same. * config/os/generic/bits/ctype_noninline.h (ctype): Same. * config/os/aix/bits/ctype_noninline.h (ctype): Same. * config/os/bsd/netbsd/bits/ctype_noninline.h (ctype): Same. * config/os/bsd/freebsd/bits/ctype_noninline.h (ctype): Same. * src/locale-inst.cc: Clean instantiations. * src/locale.cc (ctype<char>): Add definitions here. (ctype<wchar_t>::_M_wmask): Move definitions here. * config/os/generic/bits/ctype_inline.h (ctype<char>::is): Implement in a generic way, with only "C" functionality and no knowlege of the target os. * config/os/generic/bits/os_defines.h: Change comments to C++ style. * testsuite/22_locale/ctype_char_members.cc (test01): Add tests. * include/bits/codecvt.h (ctype_byname): Remove specializations, as not required. * include/bits/localefwd.h (codecvt_byname): And here. * src/codecvt.cc: Remove codecvt_byname specializations. * include/c/bits/std_cstdio.h: Include c++config.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38100 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-27 Benjamin Kosnik <bkoz@redhat.com>bkoz2000-11-282-6/+30
| | | | | | | | | | | * tests_flags.in (LTCXX): Change CXX_FLAG to CXXFLAGS. * testsuite/22_locale/ctor_copy_dtor.cc: Adjust formatting. * testsuite/27_io/istream_extractor_arith.cc (test11): New testcase, based on libstdc++/90. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37813 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-26 Benjamin Kosnik <bkoz@redhat.com>bkoz2000-11-271-3/+4
| | | | | | | * testsuite/27_io/istream_unformatted.cc (test05): Fixup. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37769 138bc75d-0d04-0410-961f-82ee72b054a4
* * acinclude.m4: Change C9X references to refer to C99.jsm282000-11-251-1/+1
| | | | | | | | | | | * aclocal.m4, configure: Regenerate. * config/os/gnu-linux/bits/os_defines.h, src/complex.cc, testsuite/22_locale/codecvt_wchar_t_char.cc, include/bits/stl_config.h, include/c/bits/std_cwchar.h, libmath/mathconf.h: Change C9X references to refer to C99. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37743 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-24 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-11-241-0/+5
| | | | | | | | | | | | * testsuite/22_locale/codecvt_wchar_t_char.cc (main): Add _GLIBCPP_USE_WCHAR_T guards. * configure.in (AC_OUTPUT_COMMANDS): Remove, just run scripts as is, so that checks for existence of generated files actually work. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37723 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-20 Benjamin Kosnik <bkoz@redhat.com>bkoz2000-11-211-1/+1
| | | | | | | | | | * mkcheck.in (explanation): Don't paste output of passing compiles into log file. * testsuite/23_containers/vector_ctor.cc (test02): Fix thinko. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37604 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-20 Benjamin Kosnik <bkoz@redhat.com>bkoz2000-11-202-5/+76
| | | | | | | | | | | | | | | * include/bits/std_complex.h: Tweaks, include cmath for abs overloads. * src/complex.cc: Remove cmath include, formatting tweaks, remove dead code. * include/c/bits/std_cmath.h: Formatting tweaks. * testsuite/26_numerics/complex_value.cc: New file, for catching bits gleaned from libstdc++/106. * testsuite/23_containers/vector_ctor.cc (test02): Add test from libstdc++/102. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37591 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-17 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>bkoz2000-11-171-1/+27
| | | | | | | | | | * include/bits/stl_tree.h: Overload operators == and != to be able to handle the case (const_iterator,iterator) and (iterator,const_iterator), thus fixing libstdc++/737 and the like. * testsuite/23_containers/map_operators.cc (test02): New tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37532 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/22_locale/codecvt_unicode_char.cc: Don't run itmmitchel2000-11-034-0/+20
| | | | | | | | | | if not _GLIBCPP_USE_WCHAR_T. * testsuite/22_locale/codecvt_unicode_wchar_t.cc: Likewise. * testsuite/22_locale/ctor_copy_dtor.cc: Likewise. * testsuite/22_locale/ctype_wchar_t_members.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37216 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-10-30 Benjamin Kosnik <bkoz@redhat.com>bkoz2000-10-3113-29/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/complex_io.cc : Remove ancient defines. * config/os/gnu-linux/bits/os_defines.h: Add defines. * libsupc++/tinfo2.cc: Change to cstddef. * include/bits/codecvt.h: Add include of c++config.h, so that __USE_GNU gets defined. (Important for alpha.) * include/c/bits/std_cwctype.h: Same. * include/c/bits/std_ctime.h: And here. * include/c/bits/std_cstdarg.h: Same. * include/c/bits/std_csignal.h: Same. * include/c/bits/std_csetjmp.h: Same. * include/c/bits/std_clocale.h: Same. * include/c/bits/std_climits.h: Touch. * include/c/bits/std_cfloat.h: Same. * include/c/bits/std_cerrno.h: Same. * include/c/bits/std_cwchar.h: Same. * include/c/bits/std_cassert.h: Same. * include/c/bits/std_cctype.h: Same. * include/c/bits/std_cstddef.h: And here. * include/c/bits/std_cstdlib.h: And here. * include/c/bits/std_cstdio.h: Same. * include/c/bits/std_cstring.h: Add names to namespace std::. * include/bits/c++config (_GNU_SOURCE): Move linux-specific macros from here... (_ISOC99_SOURCE): And this one.... * config/os/gnu-linux/bits/os_defines.h: ...to here. * include/bits/codecvt.h (codecvt<_InternT, _ExternT, __enc_traits>::do_in): Don't cast to const, this is a bug in glibc prior to 2.2. (codecvt<_InternT, _ExternT, __enc_traits>::do_out): Same. * include/c/bits/std_cwchar.h: Add using declarations for mbstate_t. 2000-10-30 Steven King <sxking@uswest.net> * include/bits/codecvt.h: Add cast. * include/c_std/stdio.h: Re-add printf using declaration. * include/c_std/bits/std_cstdio.h: Same * testsuite/22_locale/codecvt_wchar_t_char.cc: Fixup testsuite. * testsuite/22_locale/ctor_copy_dtor.cc: Same. * testsuite/22_locale/facet.cc: Same. * testsuite/22_locale/global_templates.cc: Same. * testsuite/22_locale/operators.cc: Same. * testsuite/22_locale/static_members.cc: Same. * testsuite/26_numerics/c_math.cc: Same. * testsuite/26_numerics/complex_inserters_extractors.cc: Same. * testsuite/27_io/fpos.cc: Same. * testsuite/27_io/istream_extractor_arith.cc: Same. * testsuite/27_io/istream_unformatted.cc: Same. * testsuite/27_io/ostream_inserter_arith.cc: Same. * testsuite/27_io/streambuf.cc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37149 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-10-24 Benjamin Kosnik <bkoz@redhat.com>bkoz2000-10-251-6/+4
| | | | | | | | | | | | | * include/bits/stl_pair.h (make_pair): Add LWG solution. * testsuite/21_strings/compare.cc (test01): Inject namespace std into the mix. * mkcheck.in (MAX_MEM_USAGE): Bump up to 3072. Strangely enough, this works. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37049 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-10-23 Benjamin Kosnik <bkoz@redhat.com>bkoz2000-10-241-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/21_strings/compare.cc (test01): Add using declarations. * include/c_std/bits/std_cerrno.h: And here. * include/c_std/bits/std_cassert.h: Tweaks. * mkcheck.in: Simplify. * acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): Simplify. (GLIBCPP_ENABLE_LONG_LONG): Same. * aclocal.m4: Regenerate. * src/Makefile.am (c_shadow_headers): Add features.h, bits/wrap_features.h. * src/Makefile.in: Regenerate. * include/c_std/features.h: New file. * include/c_std/bits/wrap_features.h (_CPP_WRAP_FEATURES_H): New file. Need to have c++config.h included before this file so _ISOC99_SOURCE around. * include/c_std/sys/cdefs.h: Hack. * include/c_std/stdlib.h: Same, use c++config.h. * include/c_std/bits/std_cstdlib.h: Use _GLIBCPP_HAVE_STRTOLD. * include/c_std/bits/std_cassert.h: Fix. * include/c_std/bits/std_cerrno.h: Make consistent. * include/c_std/bits/std_csetjmp.h (setjmp): Unscope global declaration from ::_C_legacy to _C_legacy. * include/c_std/bits/std_cstdio.h: same with printf. * include/c_std/stdio.h: And here. * include/c_std/bits/std_cstdlib.h: abort, exit comment. * include/c_std/stdlib.h: Same here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37035 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-10-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-10-211-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | * docs/links.html: Add links to defects list, standards FAQ. * testsuite/21_strings/ctor_copy_dtor.cc (test01): Disable tests with string creation that allocate huge ammounts of memory. * include/c/bits/std_cstddef.h: Put size_t, ptrdiff_t in namepace std. 2000-10-21 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> * libsupc++/exception.cc: Use namespace std. * libsupc++/new: DITTO. * libsupc++/new_op.cc: DITTO. * libsupc++/new_opnt.cc: DITTO. * libsupc++/new_opv.cc: DITTO. * libsupc++/new_opvnt.cc: DITTO. * libsupc++/tinfo.cc: DITTO. * libsupc++/tinfo.h: DITTO. * libsupc++/vec.cc: DITTO. * libsupc++/Makefile.am: Blank lines removal. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36995 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-10-19 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-10-202-48/+108
| | | | | | | | | | | | | | | | | | | | * testsuite/22_locale/codecvt_unicode_char.cc (test01): Adjust creation of state_type for unicode_codecvt to take into account the byte order markings. Add distinct tests for UCS-2BE and UCS-2LE. * testsuite/22_locale/codecvt_unicode_wchar_t.cc (test01): Same. * include/bits/codecvt.h (__enc_traits): Add support for encodings that need a byte order marker. Needed for correct unicode support. * src/locale.cc: Remove explicit qualification std::. (locale::locale(const char* __name)): Revert, as named locale support not finished. * src/localename.cc (locale::_Impl:: _Impl(size_t __numfacets, size_t __refs, bool __has_name = false, string __name): Move default argument... * include/bits/localefwd.h: Here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36959 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/27_io/istream_seeks.cc: Fix spelling typo. * ↵law2000-10-182-6/+6
| | | | | | testsuite/27_io/ostream_seeks.cc: Similarly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36919 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-10-05 Brent Verner <brent@rcfile.org>bkoz2000-10-061-2/+24
| | | | | | | | | | | | * bits/istream.tcc [basic_istream::get(basic_streambuf&)]: Removed test for _M_gcount < in_avail(), as in_avail() only reports info for current buffer, causing method to return at end of buffer. * testsuite/27_io/istream_unformatted.cc [test07()]: New test. * testsuite/27_io/istream_unformatted-3.txt: New file. * testsuite/27_io/istream_unformatted-3.tst: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36752 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-10-03 Brent Verner <brent@rcfile.org>bkoz2000-10-062-0/+3000
| | | | | | | | | | | | * bits/istream.tcc [basic_istream::get(basic_streambuf&)]: Removed test for _M_gcount < in_avail(), as in_avail() only reports info for current buffer, causing method to return at end of buffer. * testsuite/27_io/istream_unformatted.cc [test07()]: New test. * testsuite/27_io/istream_unformatted-3.txt: New file. * testsuite/27_io/istream_unformatted-3.tst: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36751 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-09-18 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-09-192-5/+64
| | | | | | | | | | | | | | | | | | * src/locale-inst.cc: Add time_put_byname and time_get_byname instantiations. * bits/locale_facets.h: Correct default, private derivation to public derivation in _byname declarations. * src/locale.cc (locale::classic()): Simplify. * src/localename.cc (locale::_Impl:: _Impl(const _Impl& __other, const string& __name, category __cat, size_t __refs): Re-work for named locales. (_M_normalize_category_names): Remove. * testsuite/22_locale/global_templates.cc (test01): Tweaks. * testsuite/22_locale/ctor_copy_dtor.cc (test01): More tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36526 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-09-15 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-09-151-1/+24
| | | | | | | | | | | | | | | | | | | * src/locale.cc (locale::locale(const char* __name)): Consolidate name setting. Add checks for NULL __name pointers. Remove calls to _S_initialize() as initial locale initialization can either be assumed, or needs to be made consistent throughout locale constructors. (locale::locale(const locale& __other, const char* __name, category __cat): Add checks for NULL name. Add checks for assignment to self. * src/localename.cc (locale::_Impl:: _Impl(const _Impl& __other, const string& __name, category __cat, size_t __refs)): Set correct name, has_name values. * testsuite/22_locale/ctor_copy_dtor.cc (test01): More tests. * docs/22_locale/locale.html: New file, more unfinished docs... git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36451 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-09-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-09-151-11/+33
| | | | | | | | | | | | | | | | | | | | * src/locale.cc (locale::name()): Implement. (_Impl(size_t __numfacets, size_t __refs, bool __namep = false, string __name = "*")): Change signature. (locale::classic): Initialize the "C" locale as a named locale. * bits/localefwd.h (locale): Change _M_num_references to _M_references. Eliminate _M_cached_name_ok. Rename _M_cached_name to _M_name. * bits/localefwd.h: Tweaks. * src/localename.cc: Tweaks. * testsuite/22_locale/ctor_copy_dtor.cc (test01): Add tests. (test01): Fix. * bits/basic_string.h: Consistency check, change _M_state -> _M_references. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36426 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-09-13 Benjamin Kosnik <bkoz@redhat.com>bkoz2000-09-142-0/+127
| | | | | | | | | * testsuite/22_locale/static_members.cc: New file. * testsuite/22_locale/ctor_copy_dtor.cc: New file. * src/locale.cc: Minor formatting tweaks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36415 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-09-12 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-09-123-60/+85
| | | | | | | | | | | | | | | * testsuite/22_locale/global_templates.cc (test01): Add negative tests for use_facet. * bits/localefwd.h (locale::operator()): Minor tweaks. * bits/locale_facets.tcc (locale::operator()): Same. * testsuite/22_locale/operators.cc: New file. * testsuite/22_locale/facet.cc (output_iterator): Remove gnu_input_iterator, gnu_output_iterator. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36372 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-09-11 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-09-121-0/+56
| | | | | | | | | | | | | | | | | | | | * acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Remove test != "0". * aclocal.m4: Regenerate. * configure: Regenerate. * bits/c++config (__GLIBCPP__): Update, in the hopes of making a snapshot release soon. (_GNU_SOURCE): Define this in the header files, as ISO C99 support is pretty much assumed. * testsuite/22_locale/global_templates.cc: New file. Add tests for use_facet and has_facet. * bits/codecvt.h (codecvt<_InT, _ExT, __enc_traits>::do_out): Modify/correct iconv signatures for glibc2.2. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36344 138bc75d-0d04-0410-961f-82ee72b054a4
* 000-09-07 Brad Garcia <bgarcia@laurelnetworks.com>bkoz2000-09-072-0/+86
| | | | | | | | | | * bits/stl_tree.h: Make operators !=, == type safe for map, set. * testsuite/23_containers/set_operators.cc: New file. Should not compile. * testsuite/23_containers/map_operators.cc: New file. Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36246 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-09-06 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-09-071-0/+71
| | | | | | | | | | | | | | | | | | * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Force glibc_satisfactory to no, so that libstdc++-v3's libio will be built on glibc-2.2 systems. * aclocal.m4: Regenerate. * configure: Regenerate. * */Makefile.in: Regenerate. * bits/std_cwctype.h: Put in temporary hack to work around -O2 + glibc 2.1.x unsigned errors. Or disable -Werror by default... * testsuite/23_containers/vector_element_access.cc: New file. * bits/stl_config.h (__STL_THROW_RANGE_ERRORS): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36218 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-31 Benjamin Kosnik <bkoz@cygnus.com>bkoz2000-09-011-0/+258
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bits/locale_facets.tcc (_S_build_float_format): Move ... * src/locale.cc: Here. * bits/locale_facets.tcc (num_get::_M_extract): Clean up generic definition. Move specialization to ... * src/locale.cc: Here. * bits/locale_facets.tcc: Move _Format_cache specializations to ... * src/locale.cc: Here. * bits/locale_facets.tcc: Move use_facet<ctype> specializations to ... * src/locale.cc: Here. * bits/std_locale.h: Note that locale_facets.tcc should be included here, for standards conformance. It may increase compile times though. For the time being, enable. * testsuite/22_locale/facet.cc: New file, some parts commented out for the time being. * mkcheck.in: Append total time to test summary file. * bits/sbuf_iter.h : Formatting tweaks. Clean up static const data member definitions. * src/locale.cc: Add definitions for all missing locale, locale::_Imp, and locale::id static data members. (ctype<char>): Add table_size define. (money_base): Add _S_default_pattern, uglify. * bits/localefwd.h: Add definitions for static members of _Count_ones. * bits/locale_facets.h: Tweaks. * bits/locale_facets.tcc: Tweaks. * bits/string.tcc: Add definition for npos. * bits/ios_base.h: Tweaks. * bits/ios_base.h (ios_base::Init::_M_ios_base_init): Change to _S_ios_base_init. * src/ios.cc: And here. Add _S_local_words definition. Add definitions for __ios_flags const static data. * src/codecvt.cc: Same for __enc_traits. * src/locale-inst.cc: Remove money_base data member definition here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36093 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-30 Benjamin Kosnik <bkoz@redhat.com>bkoz2000-08-311-0/+105
| | | | | | | | | | | | | | | | * testsuite/22_locale/ctype_wchar_t_members.cc (test01): New file. * docs/22_locale/codecvt.html: Re-number. * docs/22_locale/howto.html: Add entry for ctype documentation. Add entry for Nathan's introduction to locales paper. * docs/22_locale/ctype.html: New file. In progress... * docs/22_locale/codecvt.html: Formatting cleanups. * src/locale.cc (ctype<wchar_t>::do_is): Fix thinko. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36082 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-28 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-08-291-4/+4
| | | | | | | | | | | * docs/22_locale/codecvt.html: Add more bits, format. * bits/codecvt.h: Add copy ctor, rename types. * testsuite/22_locale/codecvt_unicode_char.cc: Tweak. * libio/iofwide.c: Tweak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36032 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-23 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-08-241-7/+14
| | | | | | | | | * bits/codecvt.h: Tweaks. * testsuite/22_locale/codecvt_unicode_wchar_t.cc (test01): Fix up initial string literals for UCS4. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35936 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-22 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-08-222-5/+128
| | | | | | | | | | | | | | | | | | | | | * src/locale-inst.cc: Add codecvt<unicode_t, wchar_t, __enc_traits> instantiations for has_facet and use_facet. * testsuite/22_locale/codecvt_unicode_wchar_t.cc: New file, for testing two-byte unicode encodings converted to four-byte UCS4 encodings. * bits/codecvt.h (codecvt<__enc_traits>): Fix do_unshift. * testsuite/22_locale/codecvt_unicode_char.cc (test01): Add correct state/encoding information. * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Add wcsrtombs, mbsrtowcs checks as codecvt<wchar_t, char, mbstate_t> needs them now. Add checks for langinfo.h, nl_langinfo function call. * libio/iofwide.c (_IO_fwide): Simplify, as nl_langinfo is assumed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35897 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-08-223-0/+386
| | | | | | | | | | | | | | | | | * bits/codecvt.h: Implement codecvt<wchar_t, char, mbstate_t>. Fix up __enc_traits template so as to be marginally useful. * src/codecvt.cc: And here. * bits/char_traits: Tweak. * bits/locale_facets.h: Tweak. * bits/locale_facets.tcc: Tweak. * bits/localefwd.h: Tweak. * src/locale-inst.cc: Add use_facet/has_facet instantiations here. * testsuite/22_locale/codecvt_wchar_t_cc.cc: New file. * testsuite/22_locale/codecvt_char_char.cc: New file. * testsuite/22_locale/codecvt_unicode_char.cc: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35871 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-08-141-3/+3
| | | | | | | * testsuite/27_io/stringstream.cc (test02): Fix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35690 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-14 Brent Verner <brent@rcfile.org>bkoz2000-08-141-0/+51
| | | | | | | | | | | | * testsuite/debug_assert.h: new file * testsuite/*/*.cc: s/test\s*&=([^;]+);/VERIFY($1);/g changed conditional #include <c?assert.?h?> to unconditional #include <debug_assert.h> * mkcheck.in: added $SRC_DIR/testsuite to include search path for testsuite compile command. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35688 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-14 Brent Verner <brent@rcfile.org>bkoz2000-08-1469-1704/+1657
| | | | | | | | | | | | * testsuite/debug_assert.h: new file * testsuite/*/*.cc: s/test\s*&=([^;]+);/VERIFY($1);/g changed conditional #include <c?assert.?h?> to unconditional #include <debug_assert.h> * mkcheck.in: added $SRC_DIR/testsuite to include search path for testsuite compile command. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35682 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-14 Levente Farkas <lfarkas@mindmaker.hu>bkoz2000-08-141-1/+39
| | | | | | | | | | | | | | * bits/std_fstream.h: Remove duplicate typdefs for ofstream and wofstream, filebuf, wfilebuf, fstream, wfstream. * bits/std_streambuf.h: Same for streambuf, wstreambuf. * bits/std_sstream.h: Same for stringstream and wstringstream. Same for stringbuf, wstringbuf, istringstream, wistringstream, ostringstream, wostringstream. * testsuite/26_numerics/valarray.cc: Add test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35681 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-09 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-08-092-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Preliminary wchar_t implementation, with trivial encodings. * docs/configopts.html: Add bits about canonical configure option checking. * testsuite/27_io/iostream_objects.cc: Replace this file (which has newly-declared-illegal mixing of wide/narrow stdstreams) with... * testsuite/27_io/narrow_stream_objects.cc: New file. * testsuite/27_io/wide_stream_objects.cc: New file. * bits/fstream.tcc (underflow): Temporarily hack a solution together that writes from the external file to the internal buffers. This removes codecvt from the loop, and is incorrect. (_M_really_overflow): Same here. * testsuite/21_strings/inserters_extractors.cc (test05): Tweaks. 2000-08-08 Benjamin Kosnik <bkoz@cygnus.com> Ulrich Drepper <drepper@cygnus.com> * config/c_io_libio.h: Tweak. * config/c_io_libio_codecvt.c: New file. * libio/Makefile.am: Add c_codecvt.c. * libio/Makefile.in: Regenerate. * libio/genops.c (_IO_unbuffer_write): Don't call _IO_SETBUF if the stream is not orientated. * acinclude.m4: Add config/c_io_libio_codecvt.c dummy file, until encoding gets fleshed out. * bits/basic_file.h: Add specialization declarations. * config/c_io_libio.cc: Add specializations for pbackfail, uflow. * config/c_io_libio.h: Add __c_wfile_type. * bits/basic_file.h: Add _M_wfile. * config/c_io_libio.cc (__basic_file<char>): Initialize the streams without setting the orientation of the underlying FILE to either wide or narrow. (__basic_file<wchar_t>)): Enable tricky wchar_t io bits. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35584 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-09 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-08-092-15/+102
| | | | | | | | | | | | | | | | | | | | | Finish preliminary wchar_t implementation, with trivial encodings. * docs/configopts.html: Add bits about canonical configure option checking. * testsuite/27_io/iostream_objects.cc: Replace this file (which has newly-declared-illegal mixing of wide/narrow stdstreams) with... * testsuite/27_io/narrow_stream_objects.cc: New file. * testsuite/27_io/wide_stream_objects.cc: New file. * bits/fstream.tcc (underflow): Temporarily hack a solution together that writes from the external file to the internal buffers. This removes codecvt from the loop, and is incorrect. (_M_really_overflow): Same here. * testsuite/21_strings/inserters_extractors.cc (test05): Tweaks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35582 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-07-23 Brent Verner <brent@rcfile.org>bkoz2000-07-241-9/+48
| | | | | | | | | | | | | | | | | | | | | | | * bits/istream.tcc: istream::getline(char_type*, streamsize, char_type) make compliant * testsuite/27_io/istream_unformatted.cc: test for compliant behavior 2000-07-23 Benjamin Kosnik <bkoz@haight.constant.com> * acinclude.m4 (enable_cshadow_headers): Fix problems with blddir and srcdir used to define CSHADOW_INCLUDES.. * configure.in: For consistency, change .sanity_warned to stamp-sanity-warned. * acinclude.m4: Tweak formatting. * Makefile.am (check): Call mkcheck with full pathname for build directory... (check-install): And here. * Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35227 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-07-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-07-221-0/+4
| | | | | | | | | | | | | | * src/stl-inst.cc: Change __sink_unused_warning to unsigned int for alpha. * testsuite/26_numerics/complex_inserters_extractors.cc (testall): Change return type to void. * testsuite/25_algorithms/lower_bound.cc: Add return values. * testsuite/17_intro/header_ciso646.cc: Modify. * bits/locale_facets.h: Add return values for the generic cases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35193 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-07-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-07-222-3/+3
| | | | | | | | | | | | | * src/stl-inst.cc: Change __sink_unused_warning to unsigned int for alpha. * testsuite/26_numerics/complex_inserters_extractors.cc (testall): Change return type to void. * testsuite/25_algorithms/lower_bound.cc: Add return values. * bits/locale_facets.h: Add return values for the generic cases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35183 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-07-20 Benjamin Kosnik <bkoz@cygnus.com>bkoz2000-07-212-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * bits/std_streambuf.h: Add bits for pback buffers here, so that in_avail, etc can use them. * bits/std_fstream.h: Ditto. * bits/fstream.tcc: Ditto. * testsuite/27_io/filebuf.cc: Tweaks. * testsuite/27_io/filebuf-3.tst: Correct for pbackfail bits. 2000-07-19 Benjamin Kosnik <bkoz@cygnus.com> * src/localename.cc: Same. * src/locale.cc: Same. * bits/localefwd.h: _M_init_facet to _M_facet_init. * bits/locale_facets.h: _M_init_boolnames to _M_boolnames_init. * bits/std_sstream.h: Change _M_init_stringbuf to _M_stringbuf_init. * bits/fstream.tcc: Change _M_init_filebuf to _M_filebuf_init. * bits/std_fstream.h: Same. * bits/basic_string.h: Tweaks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35157 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-07-07 brent verner <brent@rcfile.org>bkoz2000-07-071-3/+73
| | | | | | | | | | | * testsuite/27_io/istream_unformatted.cc (test05): New test. 2000-07-07 Benjamin Kosnik <bkoz@gnu.org> * bits/istream.tcc (istream::getline): Minor tweaks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34913 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-07-05 brent verner <brent@rcfile.org>bkoz2000-07-052-0/+42
| | | | | | | | | | | | | | | | * testsuite/27_io/ifstream_members.cc (test01): Add tests. * testsuite/27_io/ofstream_members.cc (test01): Add tests. * config/c_io_libio.cc (__basic_file::open): Unset ~_IO_DELETE_DONT_CLOSE. 2000-07-05 Zack Weinberg <zack@wolery.cumb.org> * bits/gslice_array.h, bits/indirect_array.h, bits/mask_array.h, bits/slice_array.h, bits/std_valarray.h, bits/valarray_meta.h: Do not paste anything after 'operator' keyword. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34877 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-07-03 scott snyder <snyder@fnal.gov>bkoz2000-07-041-1/+10
| | | | | | | | | | | | | | | | | | | | * bits/locale_facets.tcc (_M_extract): Only figure out the base from the input if base == 0. * testsuite/27_io/istream_extractor_arith.cc: Test reading a number with a leading `0' in hex mode. * shadow/bits/std_cmath.h: Fix typo in _GLIBCPP_HAVE_CEILL test. * mkinclosure: Change `==' to `=' in test. 2000-07-03 Chip Salzenberg <chip@valinux.com> * src/Makefile.am (libio_headers): _G_config.h is found in srcdir, not builddir. * src/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34860 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-06-29 Benjamin Kosnik <bkoz@purist.soma.redhat.com>bkoz2000-06-304-222/+606
| | | | | | | | | | | | | | | | | | | | | | | * testsuite/27_io/ostream_manip.cc (test02): Add tests. * bits/ostream.tcc: Tweak. * bits/std_fstream.h (basic_filebuf::setbuf): Reset _M_buf_size_opt too. * bits/std_streambuf.h (basic_streambuf::~basic_streambuf): Zero out _M_buf_size_opt. * bits/std_sstream.h (basic_stringbuf::_M_init_stringbuf): Set _M_buf_size_opt out here. * bits/char_traits.h (char_traits::eos): Non standard member function, uglify to __eos. Return char_type(). * bits/std_ostream.h: Change. * testsuite/27_io/ostream_seeks.cc: New file. * testsuite/27_io/ostream_seeks-1.tst: New file. * testsuite/27_io/istream_unformatted.cc (main): Move test04 and test05 to... * testsuite/27_io/istream_seeks.cc: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34801 138bc75d-0d04-0410-961f-82ee72b054a4