aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
AgeCommit message (Collapse)AuthorFilesLines
2003-10-21re PR libstdc++/9858 (Extra virtual functions in ctype<char>)Benjamin Kosnik20-111/+229
2003-10-21 Benjamin Kosnik <bkoz@redhat.com> PR libstdc++/9858 * include/bits/locale_facets.h (ctype<char>): Remove __ctype_abstract_base. (ctype<char>::do_is): Remove. (ctype<char>::do_scan_is): Remove. * src/ctype.cc: Same. Inline the rest. * testsuite/22_locale/ctype/is/char/9858.cc: New. * config/os/aix/ctype_noninline.h: Adjust ctor. * config/os/bsd/freebsd/ctype_noninline.h: Same. * config/os/bsd/netbsd/ctype_noninline.h: Same. * config/os/djgpp/ctype_noninline.h: Same. * config/os/generic/ctype_noninline.h: Same. * config/os/gnu-linux/ctype_noninline.h: Same. * config/os/hpux/ctype_noninline.h: Same. * config/os/irix/irix5.2/ctype_noninline.h: Same. * config/os/irix/irix6.5/ctype_noninline.h: Same. * config/os/mingw32/ctype_noninline.h: Same. * config/os/newlib/ctype_noninline.h: Same. * config/os/qnx/qnx6.1/ctype_noninline.h: Same. * config/os/solaris/solaris2.5/ctype_noninline.h: Same. * config/os/solaris/solaris2.6/ctype_noninline.h: Same. * config/os/solaris/solaris2.7/ctype_noninline.h: Same. * config/os/windiss/ctype_noninline.h: Same. From-SVN: r72753
2003-10-21locale.cc: Tweak a comment.Paolo Carlini3-3/+7
2003-10-21 Paolo Carlini <pcarlini@suse.de> * src/locale.cc: Tweak a comment. * src/localename.cc: Move a comment. From-SVN: r72745
2003-10-21Daily bump.GCC Administrator1-1/+1
From-SVN: r72733
2003-10-20re PR libstdc++/10081 (basic_ios::_M_cache_locale leaves NULL members in the ↵Benjamin Kosnik17-939/+974
face of unknown locales) 2003-10-20 Benjamin Kosnik <bkoz@redhat.com> PR libstdc++/10081 * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations. * testsuite_hooks.cc: Same. * 22_locale/numpunct/members/pod/1.cc: Edit. * 22_locale/numpunct/members/pod/2.cc: Same. * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ... * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ... * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here. * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here. * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here. * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove. * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove. * 27_io/basic_istream/sentry/pod/1.cc: New. * 27_io/basic_ostream/sentry/pod/1.cc: New. * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New. * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New. From-SVN: r72728
2003-10-20ffi.c: Use _ABIN32, _ABIO32 instead of external _MIPS_SIM_NABI32, ↵Rainer Orth2-2/+7
_MIPS_SIM_ABI32. libffi: * src/mips/ffi.c: Use _ABIN32, _ABIO32 instead of external _MIPS_SIM_NABI32, _MIPS_SIM_ABI32. libstdc++-v3: * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead of external _MIPS_SIM_ABI32. boehm-gc: * mips_sgi_mach_dep.s: Use _ABIO32 instead of external _MIPS_SIM_ABI32. gcc: * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32. Use it in _MIPS_SIM definition. * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise. From-SVN: r72713
2003-10-20configure.ac: Fix comment typo.Phil Edwards10-35/+499
2003-10-20 Phil Edwards <phil@codesourcery.com> * configure.ac: Fix comment typo. * configure.host: Add vxworks to host_os switch. * crossconfig.m4: Remove old commented os_include_dir variables left over from autotools transition. (*-vxworks): New stanza. (*-windiss): Add missing symbols. * configure: Regenerate. * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h, config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h: New files. * config/os/windiss/os_defines.h: Define __C9X__. From-SVN: r72710
2003-10-20Daily bump.GCC Administrator1-1/+1
From-SVN: r72689
2003-10-19re PR libstdc++/12506 (build failure of libstdc++ due to Makefile error)David Edelsohn2-0/+7
PR other/12506 * configure.host (aix4,aix*): Define os_include_dir to os/generic. From-SVN: r72684
2003-10-19locale.cc (locale::_S_initialize): Re-apply workaround a confusion of the ↵Andreas Tobler2-5/+8
use of the gthr API when... 2003-10-18 Andreas Tobler <a.tobler@schweiz.ch> * src/locale.cc (locale::_S_initialize): Re-apply workaround a confusion of the use of the gthr API when __gthread_active_p() returns true. From-SVN: r72679
2003-10-19Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r72665.2
2003-10-18Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r72629.2
2003-10-17Makefile.am: Add new files.Benjamin Kosnik16-1314/+1443
2003-10-17 Benjamin Kosnik <bkoz@redhat.com> * src/Makefile.am: Add new files. * src/Makefile.in: Regenerate. * src/globals.cc: Split into.. * src/globals_io.cc: New. * src/globals_locale.cc: New. * src/ios.cc: Split into... * src/ios_init.cc: New. * src/ios_locale.cc: New. * src/locale-inst.cc: Split into.. * src/wlocale-inst.cc: New. * src/locale-misc-inst.cc: New. * src/locale.cc, src/localename: Split into... * src/locale_facets.cc: New. * src/locale_init.cc: New. * src/wstring-inst.cc: Add copyright info. From-SVN: r72607
2003-10-17Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r72587.2
2003-10-16Remove PR 8610 heading mistakenly added to last ChangeLog entry.Paolo Carlini1-1/+0
From-SVN: r72584
2003-10-16[multiple changes]Benjamin Kosnik41-385/+900
2003-10-16 Petur Runolfsson <peturr02@ru.is> PR libstdc++/8610 PR libstdc++/11450 PR libstdc++/11543 PR libstdc++/12065 * config/io/basic_file_stdio.cc (__basic_file::seekoff): Change return value from streampos to streamoff. (__basic_file::seekpos): Delete. * config/io/basic_file_stdio.h: Same. * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs. * include/Makefile.am (bits_headers): Add bits/postypes.h. * include/bits/char_traits.h: Include bits/postypes.h instead of bits/fpos.h. * include/bits/fstream.tcc (basic_filebuf::open, basic_filebuf::pbackfail): Don't use < or >= to compare pos_type values, use == and != instead. (basic_filebuf::_M_seek): Use explicit conversion from streamoff to pos_type. (basic_filebuf::imbue): Don't use ! on pos_type values, use == instead. Don't use __check_facet(_M_codecvt) unless is_open(). * include/bits/postypes.h: New file. Add __streamoff_base_type typedef, streamsize. (streamoff, streampos, wstreampos): Define typedefs, with streamoff defined as... (streamoff): New class. Document implementation defined aspects. (fpos): New implementation. Document implementation defined aspects. * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use explicit conversion from pos_type to off_type. * include/std/std_iosfwd.h: Include bits/postypes.h instead of bits/fpos.h. * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test. * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test. * testsuite/27_io/fpos/11450.cc: New test. * testsuite/27_io/fpos/mbstate_t/12065.cc: New test. * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test. * testsuite/27_io/types/3.cc: New test. 2003-10-16 Benjamin Kosnik <bkoz@redhat.com> * configure.host: Remove fpos_include_dir. * configure.ac: Remove FPOS_INC_SRCDIR. * configure: Regenerate. * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H. * aclocal.m4: Regenerate. * include/Makefile.am (host_headers): Remove fpos.h. (bits_headers): Add postypes.h. * include/Makefile.in: Regenerate. * config/os/gnu-linux/fposh: Remove. * config/os/generic/fpos.h: Remove. * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup. * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same. * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same. * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same. * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same. * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same. * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same. * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same. * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same. * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same. * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same. * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same. * testsuite/27_io/basic_istream/seekg/char/2.cc: Same. * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same. * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same. * testsuite/27_io/fpos/mbstate_t/3.cc: Same. * testsuite/27_io/objects/char/10.cc: Same. From-SVN: r72582
2003-10-16acconfig.h: Add HAVE_DRAND48.Benjamin Kosnik5-12/+3
2003-10-16 Benjamin Kosnik <bkoz@redhat.com> * acconfig.h: Add HAVE_DRAND48. * crossconfig.m4: Remove ISATTY. * aclocal.m4: Regenerated. * config.h.in: Regenerated. * configure: Regenerated. From-SVN: r72575
2003-10-16locale.cc (locale::locale(const char*)): ...Paolo Carlini2-1/+6
2003-10-16 Paolo Carlini <pcarlini@suse.de> * src/locale.cc (locale::locale(const char*)): ... one more comparison missed in the previous commit. From-SVN: r72574
2003-10-16acconfig.h: Add HAVE_DRAND48 and HAVE_ISATTY.Benjamin Kosnik4-10/+22
2003-10-16 Benjamin Kosnik <bkoz@redhat.com> * acconfig.h: Add HAVE_DRAND48 and HAVE_ISATTY. * aclocal.m4: Regenerated. * config.h.in: Regenerated. From-SVN: r72573
2003-10-16atomicity.h (__exchange_and_add): Use TAS on __mcf5400__.Bernardo Innocenti2-7/+16
* config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000. Document SMP safeness of asm macros. From-SVN: r72570
2003-10-16locale.cc (locale::locale(const char*)): Tweak a couple of comparisons to ↵Paolo Carlini2-4/+9
use basic_string operators. 2003-10-16 Paolo Carlini <pcarlini@suse.de> * src/locale.cc (locale::locale(const char*)): Tweak a couple of comparisons to use basic_string operators. From-SVN: r72554
2003-10-16re PR libstdc++/12540 (Memory leak in locale::locale(const char*))Paolo Carlini3-93/+128
2003-10-16 Paolo Carlini <pcarlini@suse.de> PR libstdc++/12540 * config/locale/gnu/monetary_members.cc (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct): Don't leak memory if new throws. * src/locale.cc (locale::locale(const char*)): In order not to leak memory in case new throws, use a basic_string type for __res too and avoid strdup. From-SVN: r72553
2003-10-16Daily bump.GCC Administrator1-1/+1
From-SVN: r72541
2003-10-14re PR c++/12562 (Enable libstdc++-v3 compliation on *-gnu*)Jeff Bailey3-2/+8
2003-10-14 Jeff Bailey <jbailey@nisa.net> PR libstdc++/12562 * crossconfig.m4: Share the config between *-linux* and *-gnu*. * configure: Regenerate. From-SVN: r72510
2003-10-15Daily bump.GCC Administrator1-1/+1
From-SVN: r72508
2003-10-14Lets add the correct test case instead.Carlo Wood1-1/+1
From-SVN: r72481
2003-10-14re PR libstdc++/12600 (Demangler goes in infinite loop for certain invalid ↵Carlo Wood3-35/+72
mangled names.) PR libstdc++/12600 * include/bits/demangle.h (session<Allocator>:: decode_unqualified_name(string_type& output)): Fail on a <operator-name> when decoding <template-argument>. * testsuite/demangle/regression/cw-15.cc: New. From-SVN: r72480
2003-10-14re PR libstdc++/11480 (std::unique calls predicate too many times)Paolo Carlini5-6/+173
2003-10-14 Paolo Carlini <pcarlini@unitus.it> PR libstdc++/11480 * include/bits/stl_algo.h (unique): Fix. * testsuite/25_algorithms/unique.cc: Move to unique/1.cc. * testsuite/25_algorithms/unique/11480.cc: New, from the PR. * testsuite/25_algorithms/unique/2.cc: New. From-SVN: r72478
2003-10-14localename.cc (_M_replace_categories, [...]): Const-ify a couple of variables.Paolo Carlini2-3/+7
2003-10-14 Paolo Carlini <pcarlini@unitus.it> * src/localename.cc (_M_replace_categories, M_replace_facet): Const-ify a couple of variables. From-SVN: r72472
2003-10-14locale.cc (locale::_S_initialize): Workaround a confusion of the use of the ↵Petur Runolfsson2-5/+8
gthr API when... 2003-10-14 Petur Runolfsson <peturr02@ru.is> Andreas Tobler <a.tobler@schweiz.ch> * src/locale.cc (locale::_S_initialize): Workaround a confusion of the use of the gthr API when __gthread_active_p() returns true. Co-Authored-By: Andreas Tobler <a.tobler@schweiz.ch> From-SVN: r72458
2003-10-14Daily bump.GCC Administrator1-1/+1
From-SVN: r72453
2003-10-13Daily bump.GCC Administrator1-1/+1
From-SVN: r72413
2003-10-12re PR libstdc++/11460 (Incorrect use of int_type in strstreambuf::pbackfail)Petur Runolfsson3-1/+81
2003-10-12 Petur Runolfsson <peturr02@ru.is> Paolo Carlini <pcarlini@unitus.it> PR libstdc++/11460 * src/strstream.cc (pbackfail): Fix to use to_int_type. * testsuite/backward/11460.cc: New, from the PR. Co-Authored-By: Paolo Carlini <pcarlini@unitus.it> From-SVN: r72405
2003-10-12codecvt_specializations.h: Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a ↵Paolo Carlini20-130/+95
comment. 2003-10-12 Paolo Carlini <pcarlini@unitus.it> * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment. * include/bits/basic_string.tcc: Likewise. * include/bits/ios_base.h: Likewise. * include/bits/istream.tcc: Likewise. * include/bits/locale_facets.tcc: Likewise. * include/bits/ostream.tcc: Likewise. * include/bits/stl_function.h: Likewise. * include/bits/stl_multiset.h: Likewise. * include/bits/stl_pair.h: Likewise. * include/bits/stl_set.h: Likewise. * include/bits/streambuf_iterator.h * include/std/std_iosfwd.h: Likewise. * include/std/std_istream.h: Likewise. * include/std/std_sstream.h: Likewise. * include/std/std_streambuf.h: Likewise. * src/ios.cc: Likewise. * include/bits/c++config: Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1. * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a dg-error directive due to removal of a blank line. * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise. From-SVN: r72392
2003-10-12PR libstdc++/11844/11740 (cont)Andreas Tobler2-10/+17
2003-10-12 Andreas Tobler <a.tobler@schweiz.ch> Paolo Carlini <pcarlini@unitus.it> PR libstdc++/11844/11740 (cont) * config/os/generic/ctype_inline.h (ctype<char>::is): Generically, use a bitmasksize of 15 (instead of 10); Fix the logic to actually return (M & m) != 0 as per 22.2.1.1.2. Co-Authored-By: Paolo Carlini <pcarlini@unitus.it> From-SVN: r72389
2003-10-12Daily bump.GCC Administrator1-1/+1
From-SVN: r72386
2003-10-11crossconfig.m4 (*-uclinux*): New target.Bernardo Innocenti3-2/+7
* crossconfig.m4 (*-uclinux*): New target. * configure: Regenerate. From-SVN: r72325
2003-10-11Daily bump.GCC Administrator1-1/+1
From-SVN: r72319
2003-10-102003-10-10 Paolo Carlini <pcarlini@unitus.it>Paolo Carlini2-30/+44
* include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT)) Avoid unnecessarily calling __builtin_alloca and dealing explicitly with width() smaller than zero. (operator<<(basic_ostream&, char), operator<<(basic_ostream&, const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const char*), operator<<(basic_ostream<char, _Traits>&, const char*), operator<<(basic_ostream, const basic_string&)): Likewise. From-SVN: r72302
2003-10-10Daily bump.GCC Administrator1-1/+1
From-SVN: r72291
2003-10-09linker-map.gnu: Make more *_type_info bits visible.Benjamin Kosnik4-39/+88
2003-10-09 Benjamin Kosnik <bkoz@redhat.com> * config/linker-map.gnu: Make more *_type_info bits visible. Move new/delete bits back into GLIBCXX space. * include/bits/locale_classes.h: Move _M_id out of line, so that locale::id::_S_highwater can be removed from the export list. * src/locale.cc (locale::id::_M_id): Define. From-SVN: r72287
2003-10-09libstdc++.exp: Set LD_LIBRARY_PATH_64 for SPARC64.Andreas Tobler2-0/+6
2003-10-09 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for SPARC64. From-SVN: r72282
2003-10-09re PR libstdc++/11844 (Incorrect values of ctype_base::alnum and ↵Paolo Carlini12-29/+101
ctype_base::graph) 2003-10-09 Paolo Carlini <pcarlini@unitus.it> PR libstdc++/11844 * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph' to conform to the requirements of 22.2.1. * config/os/bsd/freebsd/ctype_base.h: Likewise. * config/os/djgpp/ctype_base.h: Likewise. * config/os/generic/ctype_base.h: Likewise. * config/os/gnu-linux/ctype_base.h: Likewise. * config/os/hpux/ctype_base.h: Likewise. * config/os/irix/irix6.5/ctype_base.h: Likewise. * config/os/solaris/solaris2.6/ctype_base.h: Likewise. * config/os/solaris/solaris2.7/ctype_base.h: Likewise. * testsuite/22_locale/ctype/11844.cc: New. * config/locale/generic/ctype_members.cc (do_is): Generically, use a bitmasksize of 15 (instead of 10), since we don't know the numerical encoding of the various categories in the underlying /usr/include/ctype.h. From-SVN: r72281
2003-10-09[multiple changes]Benjamin Kosnik10-58/+73
2003-10-09 Benjamin Kosnik <bkoz@redhat.com> * src/string-inst.cc: Prune. * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers. * testsuite/27_io/ios_base/cons/copy_neg.cc: Same. 2003-10-09 Petur Runolfsson <peturr02@ru.is> * src/io-inst.cc: Don't include iostream. * include/bits/ios_base.h (ios_base::failure): Use string. * src/Makefile.am: Add ios_failure.cc. * src/Makefile.in: Regenerate. * src/ios.cc: Move ios_base::failure definitions to... * src/ios_failure.cc: ...here. New. From-SVN: r72272
2003-10-09re PR libstdc++/9874 (filebuf::seekpos fails if codecvt::encoding() <= 0)Petur Runolfsson5-31/+201
2003-10-09 Petur Runolfsson <peturr02@ru.is> PR libstdc++/9874 * include/bits/fstream.tcc (basic_filebuf::seekoff): Move code needed for both seekoff and seekpos... (basic_filebuf::_M_seek): ...here. New function. (basic_filebuf::seekpos): Don't call seekoff, call _M_seek. * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it. * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test. * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit. From-SVN: r72268
2003-10-09Daily bump.GCC Administrator1-1/+1
From-SVN: r72250
2003-10-08locale_facets.tcc: More minor cosmetic changes and const-ifications of some ↵Paolo Carlini2-21/+22
variables. 2003-10-08 Paolo Carlini <pcarlini@unitus.it> * include/bits/locale_facets.tcc: More minor cosmetic changes and const-ifications of some variables. From-SVN: r72226
2003-10-08Daily bump.GCC Administrator1-1/+1
From-SVN: r72213
2003-10-07locale_facets.tcc: Minor cosmetic changes and const-ifications of some ↵Paolo Carlini2-66/+63
variables. 2003-10-07 Paolo Carlini <pcarlini@unitus.it> * include/bits/locale_facets.tcc: Minor cosmetic changes and const-ifications of some variables. * include/bits/locale_facets.tcc (money_get::do_get(..., string_type&)): Simplify an if-else. From-SVN: r72190
2003-10-07Daily bump.GCC Administrator1-1/+1
From-SVN: r72176
2003-10-06re PR libstdc++/11740 (ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle ↵Paolo Carlini4-19/+108
multiple bits in mask.) 2003-10-06 Paolo Carlini <pcarlini@unitus.it> PR libstdc++/11740 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix to actually return (M & m) != 0 as per 22.2.1.1.2. * config/locale/generic/ctype_members.cc: Same. * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New. From-SVN: r72167