Commit Graph

3872 Commits

Author SHA1 Message Date
GCC Administrator 3bc0b10f9d Daily bump.
From-SVN: r84333
2004-07-09 00:16:13 +00:00
Paolo Carlini b714a4192e gslice.h: Trivial formatting fixes.
2004-07-08  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/gslice.h: Trivial formatting fixes.
	* include/bits/gslice_array.h: Likewise.
	* include/bits/indirect_array.h: Likewise.
	* include/bits/mask_array.h: Likewise.
	* include/bits/slice_array.h: Likewise.
	* include/bits/valarray_after.h: Likewise.
	* include/bits/valarray_array.h: Likewise.
	* include/bits/valarray_before.h: Likewise.
	* include/std/std_valarray.h: Likewise.

From-SVN: r84312
2004-07-08 20:48:04 +00:00
Benjamin Kosnik 75f29cdded re PR c++/16169 (-Weffc++ item 15 improvements)
2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>

	PR c++/16169
	* include/bits/basic_string.h (basic_string::operator=): Revert.

From-SVN: r84296
2004-07-08 15:56:21 +00:00
Benjamin Kosnik 9e80211469 [multiple changes]
2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.ac (libtool_VERSION): To 6:2:0.
	* configure: Regenerated.

	* testsuite/testsuite_abi.cc (check_version): Add 3.4.2.

2004-07-07  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>

	PR libstdc++/16411
	* config/linker-map.gnu: Add stdio_sync_filebuf::file exports.

From-SVN: r84264
2004-07-08 05:24:33 +00:00
GCC Administrator d1ae24b3f5 Daily bump.
From-SVN: r84248
2004-07-08 00:16:15 +00:00
Benjamin Kosnik f83295c890 abi.html: Updates for 3.4.1 release.
2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>

	* docs/html/abi.html: Updates for 3.4.1 release. Add summary of
	-Weffc++ issues.

From-SVN: r84240
2004-07-07 22:34:01 +00:00
Paolo Carlini 9f9000d177 re PR libstdc++/16401 (ostringstream in gcc 3.4.x very slow for big data)
2004-07-07  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/16401
	* include/bits/sstream.tcc (overflow): When reallocating _M_string
	use an exponential grow policy.
	* testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
	* testsuite/performance/27_io/stringbuf_overflow.cc: New.

From-SVN: r84235
2004-07-07 21:48:01 +00:00
Anssi Hannula 185fca74fc re PR libstdc++/15928 (libstdc++ in 3.4.x 3.5 doesn't cross-compile for djgpp)
2004-07-06  Anssi Hannula  <anssi.hannula@mbnet.fi>

	PR libstdc++/15928
	* crossconfig.m4: Add in bits for djgpp.
	* configure: Regenerate.

From-SVN: r84185
2004-07-07 01:07:05 +00:00
GCC Administrator 314fbb7be7 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r84183.2
2004-07-07 00:16:18 +00:00
GCC Administrator aac1d259ac Daily bump.
From-SVN: r84142
2004-07-06 00:16:10 +00:00
Jonathan Wakely 879dc459de 14340.cc: Fix typos in instantiation of set and multiset (functor param given as int).
2004-07-05  Jonathan Wakely  <redi@gcc.gnu.org>

	* testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
	instantiation of set and multiset (functor param given as int).

From-SVN: r84112
2004-07-05 11:59:42 +01:00
GCC Administrator 91a8b4596b Daily bump.
From-SVN: r84102
2004-07-05 00:16:11 +00:00
Paolo Carlini 43da93a728 basic_string.h: Trivial formatting fixes and/or const-ification of some variables.
2004-07-04  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/basic_string.h: Trivial formatting fixes and/or
	const-ification of some variables.
	* include/bits/deque.tcc: Likewise.
	* include/bits/stl_algobase.h: Likewise.
	* include/bits/stl_bvector.h: Likewise.
	* include/bits/stl_construct.h: Likewise.
	* include/bits/stl_deque.h: Likewise.
	* include/bits/stl_pair.h: Likewise.
	* include/bits/stl_vector.h: Likewise.
	* include/bits/vector.tcc: Likewise.

From-SVN: r84090
2004-07-04 17:57:58 +00:00
Paolo Carlini f1ee6eca25 1.cc: Add instantiations for systems with no COMDAT or weak support.
2004-07-04  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/25_algorithms/copy/1.cc: Add instantiations for
	systems with no COMDAT or weak support.
	* testsuite/25_algorithms/copy/2.cc: Likewise.
	* testsuite/25_algorithms/copy/3.cc: Likewise.
	* testsuite/25_algorithms/copy/4.cc: Likewise.

From-SVN: r84076
2004-07-04 11:05:14 +00:00
GCC Administrator 61b35a3e46 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r84066.2
2004-07-04 00:16:13 +00:00
GCC Administrator 96683b8ffd Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r84039.2
2004-07-03 00:16:14 +00:00
Paul Brook a7e4cdca85 cxxabi_tweaks.h: New file.
* config/cpu/arm/cxxabi_tweaks.h: New file.
	* config/cpu/generic/cxxabi_tweaks.h: New file.

From-SVN: r84035
2004-07-02 23:58:41 +00:00
Paul Brook 1568430fae configure.ac: Set ABI_TWEAKS_SRCDIR.
* configure.ac: Set ABI_TWEAKS_SRCDIR.
	* configure.host: Set abi_tweaks_dir.  Check for atomicity.h when
	setting atomicity_dir.  Override type_cpu for arm based targets.
	* include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
	* libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
	* libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
	* libsupc++/vec.cc: Ditto.
	* config/cpu/arm/cxxabi_tweaks.h: New file.
	* config/cpu/generic/cxxabi_tweaks.h: New file.
	* */Makefile.in: Regenerate.
	* configure: Regenerate.

From-SVN: r84032
2004-07-02 23:40:19 +00:00
Paolo Carlini bdef965932 testsuite/20_util/allocator/, auto_ptr/, raw_storage_iterator.cc, temporary_buffer.cc: Move to...
2004-07-02  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/20_util/allocator/, auto_ptr/, raw_storage_iterator.cc,
	temporary_buffer.cc: Move to...
	* testsuite/20_util/memory/: ... here, new dir.
	* testsuite/20_util/pair/, testsuite/24_iterators/rel_ops.cc:
	Move to...
	* testsuite/20_util/utility/: ... here, new dir.
	* testsuite/20_util/binders.cc, comparisons.cc: Move to...
	* testsuite/20_util/functional/: ... here, new dir.

From-SVN: r84028
2004-07-02 20:44:08 +00:00
Paolo Carlini 5e91e92ede type_traits.h (_Is_normal_iterator): Move...
2004-07-02  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/type_traits.h (_Is_normal_iterator): Move...
	* include/bits/cpp_type_traits.h: ... here, renamed to
	__is_normal_iterator and consistent with the other traits.
	* include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
	to the struct __copy_normal and three specializations.
	(__copy_backward_output_normal_iterator,
	__copy_backward_input_normal_iterator): Likewise, convert to
	the struct __copy_backward_normal and three specializations.
	(copy, copy_backward): Use the latter.
	(__copy_aux, __copy_backward_aux): Very minor tweaks.

From-SVN: r84019
2004-07-02 14:49:09 +00:00
GCC Administrator f16ee2a09a Daily bump.
From-SVN: r84006
2004-07-02 00:16:12 +00:00
Paolo Carlini 695e0fbfe0 stl_algobase.h (__copy_trivial): Remove.
2004-07-01  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_algobase.h (__copy_trivial): Remove.
	(__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
	__is_trivially_copyable, __are_same and __copy::copy.
	(__copy): Rewrite as a class template and two specializations.
	(__copy_ni2): Simplify, just call __copy_aux.

	* include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
	check.
	* testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
	for destination value type != source value type.

From-SVN: r83991
2004-07-01 17:53:21 +00:00
Benjamin Kosnik 7f1ee5690d re PR libstdc++/16248 (recent concurrence.h chanes breaks mingw bootstrap)
2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
            Per Bothner  <per@bothner.com>
            Mohan Embar  <gnustuff@thisiscool.com>

        PR libstdc++/16248
        * include/bits/concurrence.h (__glibcxx_mutex_type): New.
        (__glibcxx_mutex): Encapsulate mutex init function into type for
        threaded configurations without __GTHREAD_MUTEX_INIT.
        (lock::lock): Make device member a reference.
        (lock::~lock): Same.
        * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
        to mutex_type.
        * src/allocator.cc: Same.

From-SVN: r83988
2004-07-01 15:30:36 +00:00
Benjamin Kosnik f65d320115 Per Bothner <per@bothner.com > Mohan Embar <gnustuff@thisiscool.com>
2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
            Per Bothner  <per@bothner.com >
	    Mohan Embar  <gnustuff@thisiscool.com>

	PR libstdc++/16248
	* include/bits/concurrence.h (__glibcxx_mutex_type): New.
	(__glibcxx_mutex): Encapsulate mutex init function into type for
	threaded configurations without __GTHREAD_MUTEX_INIT.
	(lock::lock): Make device member a reference.
	(lock::~lock): Same.
	* include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
	to mutex_type.
	* src/allocator.cc: Same.

Co-Authored-By: Mohan Embar <gnustuff@thisiscool.com>
Co-Authored-By: Per Bothner <per@bothner.com>

From-SVN: r83985
2004-07-01 14:49:29 +00:00
Brad Spencer 1190bcd85d mt_allocator.h: Handle allocations at static initialization that happen before _S_options is...
2004-06-30  Brad Spencer  <spencer@infointeractive.com>

	* include/ext/mt_allocator.h: Handle allocations at static
	initialization that happen before _S_options is (automatically)
	constructed; set _S_init even if _M_force_new is true.

From-SVN: r83949
2004-07-01 02:21:51 +00:00
GCC Administrator 1730c8f5a7 Daily bump.
From-SVN: r83944
2004-07-01 00:16:14 +00:00
Benjamin Kosnik bd535dc55c linker-map.gnu: Revert.
2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>

	* config/linker-map.gnu: Revert.

From-SVN: r83913
2004-06-30 16:38:42 +00:00
Benjamin Kosnik 9abf398dd9 linker-map.gnu: Add destructor exports for abstract base classes to conform to LSB.
2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
            Stuart Anderson  <anderson@netsweng.com>

	* config/linker-map.gnu: Add destructor exports for abstract base
	classes to conform to LSB.

Co-Authored-By: Stuart Anderson <anderson@netsweng.com>

From-SVN: r83910
2004-06-30 16:19:45 +00:00
Paolo Carlini badd64ad92 [multiple changes]
2004-06-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
            Paolo Carlini  <pcarlini@suse.de>

	* include/bits/cpp_type_traits.h: Add __is_pointer and
	__is_trivially_copyable.
	* include/bits/stl_algobase.h (fill, fill_n): Slightly
	tweak to use the latter.
	(__copy_backward_dispatch): Remove.
	(__copy_backward_aux): Rewrite to use __is_pointer and
	__is_trivially_copyable and __copy_backward::copy_b.
	(__copy_backward): Rewrite as a class template and two
	specializations.

2004-06-30  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/25_algorithms/copy.cc: Move to...
	* testsuite/25_algorithms/copy/1.cc: ... here, extend.
	* testsuite/25_algorithms/copy/2.cc: New.
	* testsuite/25_algorithms/copy/3.cc: New.
	* testsuite/25_algorithms/copy/4.cc: New.

From-SVN: r83897
2004-06-30 09:20:18 +00:00
GCC Administrator 9d75385f5c Daily bump.
From-SVN: r83886
2004-06-30 00:16:13 +00:00
Paul Brook 46e995e0e4 target-def.h (TARGET_CXX_GET_COOKIE_SIZE, [...]): Define.
gcc/
	* target-def.h (TARGET_CXX_GET_COOKIE_SIZE,
	TARGET_CXX_COOKIE_HAS_SIZE): Define.
	(TARGET_CXX): Use them.
	* target.h (struct gcc_target): Add cxx.get_cookie_size and
	cxx.cookie_has_size.
	* targhooks.c (default_cxx_get_cookie_size): New fucntion.
	* targhooks.h (default_cxx_get_cookie_size): Add prototype.
	* config/arm/arm.c (TARGET_CXX_GET_COOKIE_SIZE,
	TARGET_CXX_COOKIE_HAS_SIZE): Define.
	(arm_get_cookie_size, arm_cookie_has_size): New functions.
	* Make-lang.in (cp/init.o): Add dependency on $(TARGET_H).
	* doc/tm.texi: Document TARGET_CXX_GET_COOKIE_SIZE and
	TARGET_CXX_COOKIE_HAS_SIZE.
gcc/cp/
	* init.c: Include target.h.
	(get_cookie_size): Remove and replace with target hook.
	Update callers.
	(build_new_1): Store the element size in the cookie.
libstdc++-v3/
	* libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
	element size in the cookie.
testsuite/
	* g++.old-deja/g++.abi/arraynew.C: Handle ARM EABI cookies.
	* g++.old-deja/g++.abi/cxa_vec.C: Allocate larger cookies for AEABI.

From-SVN: r83854
2004-06-29 14:50:35 +00:00
GCC Administrator b1fe2e047c Daily bump.
From-SVN: r83834
2004-06-29 00:16:15 +00:00
Paolo Carlini ff89096a6e cpp_type_traits.h: Move the additions to namespace __gnu_internal outside of namespace std...
2004-06-28  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/cpp_type_traits.h: Move the additions to
	namespace __gnu_internal outside of namespace std; trivial
	formatting fixes.

From-SVN: r83806
2004-06-28 19:04:03 +00:00
Benjamin Kosnik 4723805a61 safe_base.h (__gnu_debug::_Safe_sequence_base): Revert -Weffc++ changes that defined copy ctory and or assignment operator.
2004-06-28  Benjamin Kosnik  <bkoz@redhat.com>

	* include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
	Revert -Weffc++ changes that defined copy ctory and or assignment
	operator.
	* libsupc++/tinfo.cc (__upcast_result): Same.

From-SVN: r83804
2004-06-28 18:31:18 +00:00
Paolo Carlini 2d91a076cc localename.cc (locale::_Impl::_Impl): Slightly improve the algorithm used to name the categories.
2004-06-28  Paolo Carlini  <pcarlini@suse.de>

	* src/localename.cc (locale::_Impl::_Impl): Slightly improve
	the algorithm used to name the categories.

From-SVN: r83778
2004-06-28 11:18:03 +00:00
Paolo Bonzini e4cb0c0441 Makefile.am: Give a .gch extension to the PCH files, not only to the directory.
2004-06-28  Paolo Bonzini  <bonzini@gnu.org>

	* include/Makefile.am: Give a .gch extension to
	the PCH files, not only to the directory.
	* include/Makefile.in: Regenerate.

From-SVN: r83777
2004-06-28 11:14:44 +00:00
Paolo Carlini 61c53cd36b 2004-06-28 Paolo Carlini <pcarlini@suse.de>
* config/locale/gnu/monetary_members.cc
	(moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
	assignments of _M_decimal_point and _M_thousands_sep.

From-SVN: r83767
2004-06-28 09:27:18 +00:00
GCC Administrator e6d6c95a52 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r83755.2
2004-06-28 00:16:15 +00:00
Paolo Carlini b80ec51514 contribute.html: Update some links.
2004-06-27  Paolo Carlini  <pcarlini@suse.de>

	* docs/html/17_intro/contribute.html: Update some links.
	* docs/html/17_intro/porting-howto.html: Likewise.
	* docs/html/17_intro/porting-howto.xml: Likewise.
	* docs/html/18_support/howto.html: Likewise.
	* docs/html/21_strings/howto.html: Likewise.
	* docs/html/27_io/howto.html: Likewise.
	* docs/html/configopts.html: Likewise.
	* docs/html/ext/howto.html: Likewise.
	* docs/html/faq/index.html: Likewise.
	* docs/html/install.html: Don't mention 2.x compilers.

From-SVN: r83745
2004-06-27 20:48:48 +00:00
Paolo Carlini a6048f2903 rope: Trivial formatting fixes.
2004-06-27  Paolo Carlini  <pcarlini@suse.de>

	* include/ext/rope: Trivial formatting fixes.
	* include/ext/ropeimpl.h: Likewise.

From-SVN: r83737
2004-06-27 17:51:08 +00:00
GCC Administrator b9c042e86f Daily bump.
From-SVN: r83726
2004-06-27 00:16:15 +00:00
Paolo Carlini 1ab3a0ade6 re PR libstdc++/16210 ([3.4 only] gratuitously omits "long long" I/O)
2004-06-26  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/16210
	* acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
	availability of strto(u)ll, not used anymore in the iostreams.
	* configure: Regenerate.

From-SVN: r83705
2004-06-26 08:42:38 +00:00
GCC Administrator 0e60562abe Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r83695.2
2004-06-26 00:17:34 +00:00
Benjamin Kosnik 795af1d735 re PR libstdc++/16182 (wctype.h not included by c++locale_internal.h)
2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/16182
	* linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
	AC_DEFINE_UNQUOTED.
	* configure: Regenerate.

From-SVN: r83664
2004-06-25 17:45:42 +00:00
Paul Brook 4185ae5397 target-def.h (TARGET_CXX_GUARD_TYPE, [...]): Define.
gcc/
	* target-def.h (TARGET_CXX_GUARD_TYPE, TARGET_CXX_GUARD_MASK_BIT,
	TARGET_CXX): Define.
	(TARGET_INITIALIZER): Use TARGET_CXX.
	* target.h (struct gcc_target): Add struct cxx.
	* targhooks.h (default_cxx_guard_type): Add prototype.
	* targhooks.c (default_cxx_guard_type): New function.
	* config/arm/arm.c (TARGET_CXX_GUARD_TYPE, TARGET_CXX_GUARD_MASK_BIT):
	Define.
	(arm_cxx_guard_type, arm_cxx_guard_mask_bit): New functions.
	* doc/tm.texi: Document TARGET_CXX_GUARD_TYPE and
	TARGET_CXX_GUARD_MASK_BIT.
gcc/cp/
	* decl2.c (get_guard): Call targetm.cxx.guard_type.
	(get_guard_bits, get_guard_cond): Call targetm.cxx.guard_mask_bit.
libstdc++/
	* libsupc++/cxxabi.h: Define __ARM_EABI__
	(__guard): Use it.
	* libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.

From-SVN: r83660
2004-06-25 17:15:46 +00:00
Paul Brook 29357d8b94 concurrence.h: Still create mutex object when single-threaded.
* include/bits/concurrence.h: Still create mutex object when
	single-threaded.

From-SVN: r83657
2004-06-25 16:36:13 +00:00
Paolo Carlini 07e938fc86 stl_algobase.h (fill, fill_n): Revert last change...
2004-06-25  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_algobase.h (fill, fill_n): Revert last
	change: actually we need to copy construct an object of type
	_Tp, not of type iterator_traits<>::value_type, therefore the
	code is ok.

From-SVN: r83652
2004-06-25 14:17:58 +00:00
Paolo Carlini 1a277d94fe stl_algobase.h (fill, fill_n): Tighten the dispatch: use iterator_traits<>::value_type, not _Tp.
2004-06-25  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_algobase.h (fill, fill_n): Tighten the
	dispatch: use iterator_traits<>::value_type, not _Tp.

From-SVN: r83648
2004-06-25 10:51:45 +00:00
Paolo Carlini 576df3214c 1.cc: Tweak instantiations.
2004-06-25  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
	* testsuite/25_algorithms/fill/2.cc: Likewise.

From-SVN: r83646
2004-06-25 09:37:21 +00:00
Paolo Carlini 6e539e2396 [multiple changes]
2004-06-25  Dan Nicolaescu  <dann@ics.uci.edu>
	    Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_algobase.h (__fill, __fill_n): New helpers
	for fill and fill_n, respectively: when copying is cheap, use a
	temporary to avoid a memory read in each iteration.

2004-06-25  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/25_algorithms/fill/1.cc: New.
	* testsuite/25_algorithms/fill/2.cc: Likewise.

From-SVN: r83645
2004-06-25 09:25:57 +00:00