Commit Graph

4211 Commits

Author SHA1 Message Date
Paolo Carlini f4e5280b48 [multiple changes]
2004-11-19  Chris Jefferson  <chris@bubblescope.net>

	* include/bits/stl_list.h (list::back, list::back const):
	Don't decrement temporary.

2004-11-19  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_deque.h (deque::front, deque::front const,
	deque::back, deque::back const): Slightly tweak for stylistic
	consistency.

From-SVN: r90917
2004-11-19 12:44:09 +00:00
GCC Administrator fda7c51555 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r90889.2
2004-11-19 00:16:31 +00:00
Paolo Carlini 1ecba09e20 sum_diff.cc: Use VERIFY.
2004-11-18  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
	* testsuite/ext/array_allocator/1.cc: Likewise.
	* testsuite/ext/array_allocator/2.cc: Likewise.
	* testsuite/ext/array_allocator/3.cc: Likewise.
	* testsuite/ext/enc_filebuf/char/13598.cc: Likewise.

From-SVN: r90878
2004-11-18 19:11:41 +00:00
Paolo Carlini 899671904c locale_facets.tcc (num_get<>::do_get(void*&)): If the failbit is set, don't set it again.
2004-11-18  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (num_get<>::do_get(void*&)):
	If the failbit is set, don't set it again.
	(money_get<>::_M_extract): Minor stylistic tweak: consistently
	with the other functions, take care of eofbit at the end.

From-SVN: r90861
2004-11-18 13:38:09 +00:00
Paolo Carlini 14492f0b1e DR 434.
2004-11-18  Paolo Carlini  <pcarlini@suse.de>

	DR 434. bitset::to_string() hard to use [Ready]
	* include/std/std_bitset.h (to_string): Add three overloads, taking
	fewer template arguments.
	* docs/html/ext/howto.html: Add an entry for DR 434.
	* testsuite/23_containers/bitset/to_string/1.cc: New.

From-SVN: r90854
2004-11-18 09:52:57 +00:00
GCC Administrator d596ed22a9 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r90836.2
2004-11-18 00:17:18 +00:00
Paolo Carlini e9fb72e85f istream.tcc (getline(basic_istream<>&, basic_string<>&, _CharT)): Remove temporary kludge for libstdc++/15002.
2004-11-17  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/istream.tcc (getline(basic_istream<>&, basic_string<>&,
	_CharT)): Remove temporary kludge for libstdc++/15002.
	* include/std/std_streambuf.h (class basic_streambuf): Declare
	getline(basic_istream<>&, basic_string<>&, _CharT) as friend.
	* include/bits/basic_string.h (getline(basic_istream<>&,
	basic_string<>&, _CharT)): Declare optimized specializations for
	char and wchar_t, using protected members of basic_streambuf.
	* src/istream.cc: Define the latter.

From-SVN: r90801
2004-11-17 09:04:14 +00:00
GCC Administrator f4e649d2d2 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r90777.2
2004-11-17 00:16:34 +00:00
Jonathan Wakely db566c7e81 howto.html: Document change from _GLIBCPP_CONCEPT_CHECKS to _GLIBCXX_CONCEPT_CHECKS in 3.4.
2004-11-16  Jonathan Wakely  <redi@gcc.gnu.org>

	* docs/html/19_diagnostics/howto.html: Document change from
	_GLIBCPP_CONCEPT_CHECKS to _GLIBCXX_CONCEPT_CHECKS in 3.4.

From-SVN: r90729
2004-11-16 11:48:55 +00:00
Matthias Klose ff7237d644 user.cfg.in: Set HAVE_DOT to NO.
2004-11-16  Matthias Klose  <doko@debian.org>

        * docs/doxygen/user.cfg.in: Set HAVE_DOT to NO.

From-SVN: r90720
2004-11-16 09:09:01 +00:00
Matthias Klose 7e7432e255 Makefile.am (doxygen, [...]): Use host_alias instead of build_alias.
2004-11-16  Matthias Klose  <doko@debian.org>

        * Makefile.am (doxygen, doxygen-maint, doxygen-man): Use host_alias
        instead of build_alias.
        * docs/doxygen/run_doxygen: Likewise.
        * docs/doxygen/user.cfg.in: Likewise.
        * Makefile.in: Regenerate.

From-SVN: r90719
2004-11-16 08:03:19 +00:00
GCC Administrator 0475415888 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r90707.2
2004-11-16 00:16:23 +00:00
Paolo Carlini 2bf8accc31 streambuf.tcc (__copy_streambufs): Provide a generic version of the function...
2004-11-15  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/streambuf.tcc (__copy_streambufs): Provide
	a generic version of the function, not using the protected
	members of basic_streambuf.
	* include/std/std_streambuf.h (__copy_streambufs): Declare
	optimized specializations for char and wchar_t.
	* src/streambuf.cc: New file, define the latter.
	* src/Makefile.am: Add.
	* src/Makefile.in: Regenerate.

From-SVN: r90701
2004-11-15 23:33:05 +00:00
Matthias Klose 3ebf2ebafe run_doxygen: Add --build_alias option, substitute it in docs/doxygen/user.cfg.in.
2004-11-13  Matthias Klose  <doko@debian.org>

        * docs/doxygen/run_doxygen: Add --build_alias option,
        substitute it in docs/doxygen/user.cfg.in.
        * docs/doxygen/user.cfg.in: Use build_alias.
        * Makefile.am: Pass --build_alias to run_doxygen
        * Makefile.in: Regenerate.

From-SVN: r90694
2004-11-15 21:59:18 +00:00
Benjamin Kosnik fcb94d103b testsuite_abi.cc (check_version): Add GLIBCXX_3.4.4.
2004-11-15  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.4.

From-SVN: r90681
2004-11-15 19:11:59 +00:00
Paolo Carlini e24b3cc0aa lwg-active.html, [...]: Import Revision 33.
2004-11-15  Paolo Carlini  <pcarlini@suse.de>

	* docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 33.

From-SVN: r90655
2004-11-15 09:05:27 +00:00
GCC Administrator 4d6079e03d Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r90644.2
2004-11-15 00:16:47 +00:00
Paolo Carlini 509228203e streambuf_iterator.h (istreambuf_iterator::_M_get): Slightly tweak for clarity (also leads to measurably better code).
2004-11-14  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get):
	Slightly tweak for clarity (also leads to measurably better code).

From-SVN: r90636
2004-11-14 22:54:24 +00:00
GCC Administrator f7b62acd2a Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r90604.2
2004-11-14 00:16:19 +00:00
GCC Administrator 7a4702d25b Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r90563.2
2004-11-13 00:16:33 +00:00
Andrew Pinski 690e11b8f5 re PR testsuite/14264 (testsuite should set LC_ALL/LANG to C)
2004-11-12  Andrew Pinski  <pinskia@physics.uc.edu>

        PR other/14264
        * lib/g++.exp: Set LC_ALL and LANG to C.
        * lib/gcc-dg.exp: Likewise.
        * lib/gfortran.exp: Likewise.
        * lib/objc.exp: Likewise.
        * lib/treelang.exp: Likewise.
2004-11-12  Andrew Pinski  <pinskia@physics.uc.edu>

        PR other/14264
        * testsuite/lib/libstdc++.exp: Set LC_ALL and LANG to C.
2004-11-12  Andrew Pinski  <pinskia@physics.uc.edu>

        PR other/14264
        * testsuite/lib/libjava.exp: Set LC_ALL and LANG to C.

From-SVN: r90539
2004-11-12 11:43:57 -08:00
GCC Administrator 49a94e56d8 Daily bump.
From-SVN: r90513
2004-11-12 00:16:11 +00:00
GCC Administrator ed50f1785b Daily bump.
From-SVN: r90462
2004-11-11 00:16:33 +00:00
GCC Administrator df2ae6e216 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r90377.2
2004-11-10 00:16:21 +00:00
Paolo Carlini cf5c6c8d31 locale_facets.tcc (time_get<>::do_get_weekday, [...]): Absolutely avoid dereferencing end iterators.
2004-11-09  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (time_get<>::do_get_weekday,
	time_get<>::do_get_monthname): Absolutely avoid dereferencing
	end iterators.

	* include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
	Minor tweak.

From-SVN: r90341
2004-11-09 12:49:20 +00:00
GCC Administrator d9e75e864c Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r90322.2
2004-11-09 00:16:36 +00:00
Benjamin Kosnik 948af8ae9c re PR libstdc++/17664 ([3.4 only] Crash in std::map when using _GLIBCXX_DEBUG with multithreading)
2004-11-08  Benjamin Kosnik  <bkoz@redhat.com>
	    Doug Gregor  <dgregor@cs.indiana.edu>

	PR libstdc++/17664
	* src/debug.cc: Just use one mutex.

Co-Authored-By: Doug Gregor <dgregor@cs.indiana.edu>
Co-Authored-By: Lothar Werzinger <lothar@xcerla.com>

From-SVN: r90296
2004-11-08 20:47:25 +00:00
Benjamin Kosnik 8736cbe6f2 configure.ac (libtool_VERSION): To 6:4:0.
2004-11-08  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.ac (libtool_VERSION): To 6:4:0.
	* configure: Regenerate.

	* config/linker-map.gnu: Slide new symbols into GLIBCXX_3.4.4.

	* docs/doxygen/user.cfg.in: Add more extension files.

From-SVN: r90292
2004-11-08 20:06:30 +00:00
Paolo Carlini 15fb0dbeb7 streambuf_iterator.h (class istreambuf_iterator): Consistently use _M_c to cache the current char...
2004-11-08  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/streambuf_iterator.h (class istreambuf_iterator):
	Consistently use _M_c to cache the current char, i.e., not only
	when operator++(int) is involved; change _M_c to mutable.
	(_M_get()): Always save the return value of _M_sbuf->sgetc() into
	_M_c.
	* testsuite/22_locale/time_get/get_monthname/char/1.cc: Fix
	(long standing) typo.
	* testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
	* testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
	* testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.

From-SVN: r90275
2004-11-08 17:55:54 +00:00
Paolo Carlini adb31ad60d istream.tcc (getline(char_type*, streamsize, char_type), [...]): Restore a generic version of the functions...
2004-11-08  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/istream.tcc (getline(char_type*, streamsize,
	char_type), ignore(streamsize), ignore(streamsize, int_type)):
	Restore a generic version of the functions, not using the
	protected members of basic_streambuf.
	* include/std/std_istream.h (getline(char_type*, streamsize,
	char_type), ignore(streamsize), ignore(streamsize, int_type)):
	Declare optimized specializations for char and wchar_t.
	* src/istream.cc: New file, define the latter.
	* src/Makefile.am: Add.
	* src/Makefile.in: Regenerate.

From-SVN: r90268
2004-11-08 15:46:28 +00:00
GCC Administrator 1a89f1b506 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r90249.2
2004-11-08 00:16:15 +00:00
Paolo Carlini 32890afef4 ifstream_getline-2.cc: New.
2004-11-07  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/performance/27_io/ifstream_getline-2.cc: New.

From-SVN: r90229
2004-11-07 12:35:48 +00:00
GCC Administrator d5d9e59836 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r90213.2
2004-11-07 00:16:18 +00:00
GCC Administrator bc54e9de0c Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r90153.2
2004-11-06 00:16:42 +00:00
Benjamin Kosnik 6309eefc3d re PR libstdc++/17218 (unknown subjects in generated libstdc++ manpages)
2004-11-05  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/17218
	PR libstdc++/17223
	* docs/doxygen/filter: Remove.
	* docs/doxygen/filter.sed: Remove.
	* docs/doxygen/mainpage.html: Add link to functions.
	* docs/doxygen/run_doxygen: Changes due to new source filtering.
	* docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak.
	* include/bits/allocator.h: Tweaks for doxygen.
	* include/bits/char_traits.h: Same.
	* include/bits/codecvt.h: Same.
	* include/bits/concurrence.h: Same.
	* include/bits/locale_facets.h: Same.
	* include/ext/array_allocator.h: Same.
	* include/ext/debug_allocator.h: Same.
	* include/ext/malloc_allocator.h: Same.
	* include/ext/mt_allocator.h: Same.
	* include/ext/new_allocator.h: Same.
	* include/ext/pool_allocator.h: Same.
	* include/ext/stdio_sync_filebuf.h: Same.
	* include/std/std_memory.h: Same.
	* include/tr1/array: Same.
	* include/tr1/tuple: Same.
	* config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
	* config/os/gnu-linux/ctype_base.h: Same.

From-SVN: r90137
2004-11-05 19:58:03 +00:00
GCC Administrator 30a8b5f807 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r90097.2
2004-11-05 00:16:46 +00:00
Paolo Carlini eba7452ba8 locale_facets.tcc (num_get<>::do_get(bool&)): Evaluate __beg == __end the exact strict minimum number of times.
2004-11-04  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (num_get<>::do_get(bool&)):
	Evaluate __beg == __end the exact strict minimum number of times.

From-SVN: r90058
2004-11-04 11:29:30 +00:00
GCC Administrator 76969785b4 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r90044.2
2004-11-04 00:16:19 +00:00
Jonathan Wakely cb1d5dbaeb stl_numeric.h (partial_sum, [...]): Avoid dereferencing two times __first in the prologue.
2004-11-03  Jonathan Wakely  <redi@gcc.gnu.org>

	* include/bits/stl_numeric.h (partial_sum, adjacent_difference):
	Avoid dereferencing two times __first in the prologue.

From-SVN: r90038
2004-11-03 22:22:34 +00:00
Paolo Carlini dae62ba8fd stl_numeric.h: Trivial formatting fixes.
2004-11-03  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_numeric.h: Trivial formatting fixes.

From-SVN: r90024
2004-11-03 10:14:24 +00:00
Benjamin Kosnik 34a133a808 c++config: Spacing.
2004-11-03  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/c++config: Spacing.
	* libsupc++/del_op.cc: Include c++config.h.
	* libsupc++/del_opnt.cc: Same.
	* libsupc++/del_opv.cc: Same.
	* libsupc++/del_opvnt.cc: Same.
	* libsupc++/new_op.cc: Same.
	* libsupc++/new_opnt.cc: Same.
	* libsupc++/new_opv.cc: Same.
	* libsupc++/new_opvnt.cc: Same.

From-SVN: r90021
2004-11-03 04:07:22 +00:00
Aaron W. LaFramboise 5cc781508e * config/os/bsd/darwin/os_defines.h
(_GLIBCXX_WEAK_DEFINITION): Define.
	* include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
	* libsupc++/del_op.cc (operator delete(void *)): Use
	_GLIBCXX_WEAK_DEFINITION.
	* libsupc++/del_opnt.cc
	(operator delete(void *, const std::nothrow_t&)): Same.
	* libsupc++/del_opv.cc (operator delete[](void *)): Same.
	* libsupc++/del_opvnt.cc
	(operator delete[](void *, const std::nothrow_t&)): Same.
	* libsupc++/new_op.cc (operator new(std::size_t)): Same.
	* libsupc++/new_opnt.cc
	(operator new(std::size_t, const std::nothrow_t&)): Same
	* libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
	* libsupc++/new_opvnt.cc
	(operator new[](std::size_t, const std::nothrow_t&)): Same.

From-SVN: r90017
2004-11-02 21:00:00 -06:00
Paolo Carlini e597a4d366 locale_facets.tcc (num_get<>::_M_extract_int): Evaluate *__beg the exact strict minimum number of times...
2004-11-02  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
	Evaluate *__beg the exact strict minimum number of times; likewise
	for __beg != __end; slightly simplify main parsing loop.

From-SVN: r90012
2004-11-03 01:05:08 +00:00
GCC Administrator fc706639e8 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r90009.2
2004-11-03 00:16:21 +00:00
Benjamin Kosnik 656cee9aa2 re PR libstdc++/17627 (M68060 fails with libstdc++-v3/config/cpu/m68k/atomicity.h)
2004-11-02  Benjamin Kosnik  <bkoz@redhat.com>
  	    Lothar Werzinger  <lothar@xcerla.com>

	PR libstdc++/17627
	* src/debug.cc: Include concurrence, use mutexes.
	(_Safe_iterator_base::_M_attach): Here.
	(_Safe_iterator_base::_M_detach): Here.

Co-Authored-By: Lothar Werzinger <lothar@xcerla.com>

From-SVN: r90004
2004-11-02 23:56:56 +00:00
Benjamin Kosnik bd80bd9b93 re PR libstdc++/17922 (Spurious warnings about std::ios_base::seekdir)
2004-11-02  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/17922
	* include/bits/ios_base.h : Add enum values.
	* testsuite/testsuite_hooks.h (bitmask_operators): Add function.
	* testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
	* testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
	* testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
	* testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
	* testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
	* testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
	* testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.

	* config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
	* src/ios.cc: Same.

	* testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
	* testsuite/27_io/ios_base/cons/copy_neg.cc: Same.

From-SVN: r89996
2004-11-02 19:00:19 +00:00
GCC Administrator 8bf639fa5e Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r89968.2
2004-11-02 00:16:20 +00:00
Momchil Velikov c137586a8e re PR libstdc++/18185 ([3.4 only] Unhandled exceptions leak)
2004-11-01  Momchil Velikov  <velco@fadata.bg>

	PR libstdc++/18185
	* libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
	exceptions.
	* testsuite/thread/18185.cc: New.

From-SVN: r89962
2004-11-01 22:47:33 +00:00
Chris Jefferson d68e653fae re PR libstdc++/18159 (tr1/tuple is broken on darwin)
2004-11-01  Chris Jefferson  <chris@bubblescope.net>

        PR libstdc++/18159
        * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
        (get(const pair)): Likewise.

From-SVN: r89944
2004-11-01 17:53:24 +00:00
Paolo Carlini 8dc5fa3267 locale_facets.tcc (num_get<>::_M_extract_float): Evaluate *__beg the exact strict minimum number of times...
2004-11-01  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
	Evaluate *__beg the exact strict minimum number of times; likewise
	for __beg != __end; in the main parsing loop, call ++__beg in two
	places only. The former is also a correctness issue, because,
	according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
	dereferenced only one time for each increment.

From-SVN: r89940
2004-11-01 11:31:44 +00:00