Commit Graph

6202 Commits

Author SHA1 Message Date
Paolo Carlini 0df3d1adec typedefs.cc: Add missing dg-require directives.
2009-08-20  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/30_threads/packaged_task/requirements/typedefs.cc: Add
	missing dg-require directives.

From-SVN: r150977
2009-08-20 21:45:46 +00:00
Edward Smith-Rowland a15afcc6f2 gamma.tcc: Change include guard from _TR1_GAMMA_TCC to _GLIBCXX_TR1_GAMMA_TCC to match the...
2009-08-20  Edward Smith-Rowland  <3dw4rd@verizon.net>

	* include/tr1/gamma.tcc: Change include guard from _TR1_GAMMA_TCC
	to _GLIBCXX_TR1_GAMMA_TCC to match the rest of the headers in tr1.
	* include/tr1/exp_integral.tcc: Replace _TR1_GAMMA_TCC with
	__numeric_constants<_Tp>::__gamma_e().

From-SVN: r150958
2009-08-20 09:45:03 +00:00
Benjamin Kosnik e83fd9d7f5 typedefs.cc: New.
2009-08-17  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/30_threads/packaged_task/requirements/typedefs.cc: New.

From-SVN: r150857
2009-08-17 19:21:38 +00:00
Ralf Wildenhues ae66da3ba5 configure.ac: Move guarded checks for CC and CXX ...
libstdc++-v3/
	* configure.ac: Move guarded checks for CC and CXX ...
	* acinclude.m4 (GLIBCXX_CONFIGURE): ... from here.
	* configure: Regenerate.

From-SVN: r150788
2009-08-15 07:02:33 +00:00
Edward Smith-Rowland e192376912 re PR libstdc++/41061 (Compile of program using std random fails.)
2009-08-14  Edward Smith-Rowland  <3dw4rd@verizon.net>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/41061
	* include/bits/random.h (operator<<(std::basic_ostream<>&,
	const std::lognormal_distribution<>&), 
	operator>>(std::basic_istream<>&, std::lognormal_distribution<>&),
	operator<<(std::basic_ostream<>&, const std::gamma_distribution<>&),
	operator>>(std::basic_istream<>&, std::gamma_distribution<>&),
	operator<<(std::basic_ostream<>&,
	const std::chi_squared_distribution<>&),
	operator>>(std::basic_istream<>&, std::chi_squared_distribution<>&),
	operator<<(std::basic_ostream<>&,
	const std::fisher_f_distribution<>&),
	operator>>(std::basic_istream<>&, std::fisher_f_distribution<>&),
	operator<<(std::basic_ostream<>&,
	const std::student_t_distribution<>&),
	operator>>(std::basic_istream<>&, std::student_t_distribution<>&),
	operator<<(std::basic_ostream<>&,
	const std::negative_binomial_distribution<>&)): Declare friend.
	* testsuite/26_numerics/random/uniform_real_distribution/operators/
	serialize.cc: New.
	* testsuite/26_numerics/random/piecewise_constant_distribution/
	operators/serialize.cc: Likewise.
	* testsuite/26_numerics/random/chi_squared_distribution/operators/
	serialize.cc: Likewise.
	* testsuite/26_numerics/random/normal_distribution/operators/
	serialize.cc: Likewise.
	* testsuite/26_numerics/random/uniform_int_distribution/operators/
	serialize.cc: Likewise.
	* testsuite/26_numerics/random/poisson_distribution/operators/
	serialize.cc: Likewise.
	* testsuite/26_numerics/random/bernoulli_distribution/operators/
	serialize.cc: Likewise.
	* testsuite/26_numerics/random/discrete_distribution/operators/
	serialize.cc: Likewise.
	* testsuite/26_numerics/random/weibull_distribution/operators/
	serialize.cc: Likewise.
	* testsuite/26_numerics/random/negative_binomial_distribution/
	operators/serialize.cc: Likewise.
	* testsuite/26_numerics/random/cauchy_distribution/operators/
	serialize.cc: Likewise.
	* testsuite/26_numerics/random/gamma_distribution/operators/
	serialize.cc: Likewise.
	* testsuite/26_numerics/random/fisher_f_distribution/operators/
	serialize.cc: Likewise.
	* testsuite/26_numerics/random/exponential_distribution/operators/
	serialize.cc: Likewise.
	* testsuite/26_numerics/random/lognormal_distribution/operators/
	serialize.cc: Likewise.
	* testsuite/26_numerics/random/binomial_distribution/operators/
	serialize.cc: Likewise.
	* testsuite/26_numerics/random/extreme_value_distribution/operators/
	serialize.cc: Likewise.
	* testsuite/26_numerics/random/piecewise_linear_distribution/
	operators/serialize.cc
	* testsuite/26_numerics/random/student_t_distribution/operators/
	serialize.cc: Likewise.
	* testsuite/26_numerics/random/geometric_distribution/operators/
	serialize.cc: Likewise.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>

From-SVN: r150783
2009-08-14 23:33:27 +00:00
Edward Smith-Rowland c105751c46 stl_tree.h: Make erase return iterator as per DR 130.
2009-08-14  Edward Smith-Rowland  <3dw4rd@verizon.net>

	* include/bits/stl_tree.h: Make erase return iterator as per DR 130.
	* include/bits/stl_set.h: Same.
	* include/bits/stl_multiset.h: Same.
	* include/bits/stl_map.h: Same.
	* include/bits/stl_multimap.h: Same.
	* doc/xml/manual/intro.xml: Document.
	* testsuite/23_containers/set/dr130.cc: New.
	* testsuite/23_containers/multiset/dr130.cc: New.
	* testsuite/23_containers/map/dr130.cc: New.
	* testsuite/23_containers/multimap/dr130.cc: New.

From-SVN: r150768
2009-08-14 17:54:44 +00:00
Benjamin Kosnik 938cfa0f3d pointer.h: Add pragma system_header, use _GLIBCXX_USE_LONG_LONG, macro cleanup.
2009-08-14  Benjamin Kosnik  <bkoz@redhat.com>

	* include/ext/pointer.h: Add pragma system_header, use
	_GLIBCXX_USE_LONG_LONG, macro cleanup.

From-SVN: r150763
2009-08-14 16:54:48 +00:00
Benjamin Kosnik b4d6477637 pointer.h: Add pragma system_header, use _GLIBCXX_USE_LONG_LONG, macro cleanup.
2009-08-14  Benjamin Kosnik  <bkoz@redhat.com>

	* include/ext/pointer.h: Add pragma system_header, use
	_GLIBCXX_USE_LONG_LONG, macro cleanup.

From-SVN: r150762
2009-08-14 16:51:01 +00:00
Uros Bizjak 34d3575322 compatibility-ldbl.cc: Include cmath.
* src/compatibility-ldbl.cc: Include cmath.

From-SVN: r150736
2009-08-14 10:35:55 +02:00
Benjamin Kosnik 2019698b6b compatibility-ldbl.cc: Include tr1/functional.
2009-08-13  Benjamin Kosnik  <bkoz@redhat.com>

	* src/compatibility-ldbl.cc: Include tr1/functional.

From-SVN: r150731
2009-08-14 01:45:36 +00:00
Benjamin Kosnik 5d32a15e3b compatibility-ldbl.cc: Add explicit namespace scope.
2009-08-12  Benjamin Kosnik  <bkoz@redhat.com>

	* src/compatibility-ldbl.cc: Add explicit namespace scope.

From-SVN: r150707
2009-08-12 22:05:50 +00:00
Benjamin Kosnik 12d74f0d0d extc++.h: Don't include TR1 if C++0x.
2009-08-11  Benjamin Kosnik  <bkoz@redhat.com>

	* include/precompiled/extc++.h: Don't include TR1 if C++0x.
	* include/precompiled/stdc++.h: Don't include cassert if
	_GLIBCXX_NO_ASSERT defined.
	* include/ext/cast.h (_GLIBCXX_BEGIN_NAMESPACE): Remove extra
	semi-colon.
	* include/ext/pointer.h (_GCC_CXX_POINTER_COMPARISON_OPERATION_SET):
	Same.

	* testsuite/17_intro/headers/all.cc: Move into dialect-specific
	directory.
	* testsuite/17_intro/headers/all_pedantic_errors.cc: Same.
	* testsuite/17_intro/headers/all_assert_neg.cc: Same.
	* testsuite/17_intro/headers/all_c++200x_compatibility.cc: Same.

	* testsuite/17_intro/headers/c++1998/all.cc: Use extc++.h include.
	* testsuite/17_intro/headers/c++1998/stdc++.cc: Converted all.cc,
	use stdc++.h include.
	* testsuite/17_intro/headers/c++1998/all_pedantic_errors.cc: Same.
	* testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Same.
	* testsuite/17_intro/headers/c++1998/all_c++200x_compatibility.cc: Same.
	* testsuite/17_intro/headers/c++1998/all_no_exceptions.cc: New.
	* testsuite/17_intro/headers/c++1998/all_multiple_inclusion.cc: To...
	* testsuite/17_intro/headers/c++1998/stdc++_multiple_inclusion.cc
	...this.
	* testsuite/17_intro/headers/c++200x/all.cc: To...
	* testsuite/17_intro/headers/c++200x/stdc++.cc: ..this.
	* testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: To...
	* testsuite/17_intro/headers/c++200x/stdc++_multiple_inclusion.cc:
	...this.
	* testsuite/17_intro/headers/c++200x/all_no_exceptions.cc: New.
	* testsuite/17_intro/headers/c++200x/all_pedantic_errors.cc: New.

From-SVN: r150672
2009-08-12 00:56:12 +00:00
Benjamin Kosnik 41ca42469f future: Move error handling bits outside macro guard.
2009-08-10  Benjamin Kosnik  <bkoz@redhat.com>

	* include/std/future: Move error handling bits outside macro guard.
	* src/future.cc: Adjust.

	* include/precompiled/stdc++.h: Add future.
	* doc/xml/manual/using.xml: Same.

From-SVN: r150642
2009-08-11 04:30:35 +00:00
Benjamin Kosnik a00e37691d hashtable.cc: Just definitions.
2009-08-10  Benjamin Kosnik  <bkoz@redhat.com>

	* src/hashtable.cc: Just definitions.
	* src/hashtable_c++0x.cc: Compile C++0x versions.
	* src/hash.cc: Same.
	* src/hash_c++0x.cc: Same.
	src/hash_tr1.cc: Compile TR1 versions.
	src/hashtable_tr1.cc: Same.

	* src/limits_c++0x.cc: Sync build error handling.

	* src/Makefile.am (sources): Change hash.cc to hash_tr1.cc,
	hashtable.cc to hashtable_tr1.cc.
	* src/Makefile.in: Regenerate.

From-SVN: r150641
2009-08-11 01:24:59 +00:00
Benjamin Kosnik 5302002658 functional: Doxygen markup.
2009-08-10  Benjamin Kosnik  <bkoz@redhat.com>

	* include/tr1_impl/functional: Doxygen markup.

	* doc/html/*: Regenerate.

From-SVN: r150640
2009-08-11 00:29:21 +00:00
Benjamin Kosnik 8d1b99e26a future: Fixes for -fno-exceptions.
2009-08-10  Benjamin Kosnik  <bkoz@redhat.com>

	* include/std/future: Fixes for -fno-exceptions.
	* include/bits/functexcept.h: Same.
	* libsupc++/exception_ptr.h: Same.
	* src/pool_allocator.cc: Same.
	* src/future.cc: Same.
	* src/functexcept.cc: Same.
	* config/abi/pre/gnu.ver: New exports.
	* testsuite/30_threads/packaged_task/cons/assign_neg.cc: Adjust.
	* testsuite/30_threads/packaged_task/cons/copy_neg.cc: Same.
	* testsuite/30_threads/unique_future/cons/assign_neg.cc: Same.
	* testsuite/30_threads/unique_future/cons/copy_neg.cc: Same.
	* testsuite/30_threads/shared_future/cons/assign_neg.cc: Same.
	* testsuite/30_threads/promise/cons/assign_neg.cc: Same.
	* testsuite/30_threads/promise/cons/copy_neg.cc: Same.

	* testsuite/23_containers/deque/operators/1.cc: Separate in two...
	* testsuite/23_containers/deque/operators/2.cc: New.

From-SVN: r150633
2009-08-10 18:24:47 +00:00
Paolo Carlini ac517fcbcc hash.cc (hash<string>::operator()(string), hash<wstring>::operator()(wstring)): Do not decorate as throwing nothing.
2009-08-07  Paolo Carlini  <paolo.carlini@oracle.com>

	* src/hash.cc (hash<string>::operator()(string),
	hash<wstring>::operator()(wstring)): Do not decorate as throwing
	nothing.
	* include/bits/functional_hash.h (hash<error_code>::
	operator()(error_code)): Likewise.

From-SVN: r150566
2009-08-07 10:13:44 +00:00
Benjamin Kosnik 21da6d0f10 compatibility.cc: Make C++0x safe, add in explicit casts to bool for stream sentry objects.
2009-08-06  Benjamin Kosnik  <bkoz@redhat.com>

	* src/compatibility.cc: Make C++0x safe, add in explicit casts to
        bool for stream sentry objects.
        * include/bits/istream.tcc: Same.
        * include/bits/ostream.tcc: Same.
        * include/bits/basic_string.tcc: Same.
	* include/bits/ostream_insert.h: Same.
        * src/istream.cc: Same.

From-SVN: r150539
2009-08-06 19:33:33 +00:00
Paolo Carlini 05168714db re PR libstdc++/15523 ([DR 408] Can't have vectors of vector::const_iterator)
2009-08-04  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/15523
	* include/debug/safe_iterator.h (_Safe_iterator<>::
	_Safe_iterator(const _Safe_iterator&), _Safe_iterator<>::
	operator=(const _Safe_iterator&)): Implement resolution of DR 408,
	do not error out when the source is a value-initialized iterator.
	* testsuite/23_containers/vector/15523.cc: New.
	* doc/xml/manual/intro.xml: Add an entry for DR 408.

From-SVN: r150455
2009-08-04 13:01:08 +00:00
Paolo Carlini 53a381dc16 istream (operator>>(basic_istream<>&&, _Tp&)): Minor cosmetic changes, inline.
2009-08-03  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/std/istream (operator>>(basic_istream<>&&, _Tp&)): Minor
	cosmetic changes, inline.
	* include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&)):
	Likewise.
	* include/bits/move.h: Minor cosmetic changes.

From-SVN: r150387
2009-08-03 21:53:25 +00:00
Paolo Carlini 453def3ea1 PR libstdc++/40912 (final)
2009-08-02  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/40912 (final)
	* testsuite/26_numerics/random/mt19937.cc: dg-require-cstdint.
	* testsuite/26_numerics/random/uniform_real_distribution/cons/
	parms_neg.cc: Likewise.
	* testsuite/26_numerics/random/uniform_real_distribution/cons/
	parms.cc: Likewise.
	* testsuite/26_numerics/random/uniform_real_distribution/cons/
	default.cc: Likewise.
	* testsuite/26_numerics/random/uniform_real_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/piecewise_constant_distribution/
	cons/range.cc: Likewise.
	* testsuite/26_numerics/random/piecewise_constant_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/piecewise_constant_distribution/
	cons/num_xbound_fun.cc: Likewise.
	* testsuite/26_numerics/random/piecewise_constant_distribution/
	cons/initlist_fun.cc: Likewise.
	* testsuite/26_numerics/random/piecewise_constant_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/minstd_rand.cc: Likewise.
	* testsuite/26_numerics/random/chi_squared_distribution/cons/
	parms.cc: Likewise.
	* testsuite/26_numerics/random/chi_squared_distribution/cons/
	default.cc: Likewise.
	* testsuite/26_numerics/random/chi_squared_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/normal_distribution/
	cons/parms.cc: Likewise.
	* testsuite/26_numerics/random/normal_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/normal_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/seed_seq/cons/
	range.cc: Likewise.
	* testsuite/26_numerics/random/seed_seq/cons/
	initlist.cc: Likewise.
	* testsuite/26_numerics/random/seed_seq/cons/
	default.cc: Likewise.
	* testsuite/26_numerics/random/seed_seq/requirements/
	typedefs.cc: Likewise.
	* testsuite/26_numerics/random/uniform_int_distribution/
	cons/parms_neg.cc: Likewise.
	* testsuite/26_numerics/random/uniform_int_distribution/
	cons/parms.cc: Likewise.
	* testsuite/26_numerics/random/uniform_int_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/uniform_int_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/poisson_distribution/cons/
	parms.cc: Likewise.
	* testsuite/26_numerics/random/poisson_distribution/cons/
	default.cc: Likewise.
	* testsuite/26_numerics/random/poisson_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/bernoulli_distribution/
	cons/parms.cc: Likewise.
	* testsuite/26_numerics/random/bernoulli_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/bernoulli_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/ranlux24_base.cc: Likewise.
	* testsuite/26_numerics/random/
	default_random_engine.cc: Likewise.
	* testsuite/26_numerics/random/discrete_distribution/
	cons/range.cc: Likewise.
	* testsuite/26_numerics/random/discrete_distribution/
	cons/initlist.cc: Likewise.
	* testsuite/26_numerics/random/discrete_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/discrete_distribution/
	cons/num_xbound_fun.cc: Likewise.
	* testsuite/26_numerics/random/discrete_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/weibull_distribution/
	cons/parms.cc: Likewise.
	* testsuite/26_numerics/random/weibull_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/weibull_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/independent_bits_engine/
	cons/base_move.cc: Likewise.
	* testsuite/26_numerics/random/independent_bits_engine/
	cons/seed1.cc: Likewise.
	* testsuite/26_numerics/random/independent_bits_engine/
	cons/seed2.cc: Likewise.
	* testsuite/26_numerics/random/independent_bits_engine/
	cons/base_copy.cc: Likewise.
	* testsuite/26_numerics/random/independent_bits_engine/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/independent_bits_engine/
	cons/seed_seq.cc: Likewise.
	* testsuite/26_numerics/random/independent_bits_engine/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/independent_bits_engine/
	operators/equal.cc: Likewise.
	* testsuite/26_numerics/random/independent_bits_engine/
	operators/serialize.cc: Likewise.
	* testsuite/26_numerics/random/ranlux48_base.cc: Likewise.
	* testsuite/26_numerics/random/minstd_rand0.cc: Likewise.
	* testsuite/26_numerics/random/subtract_with_carry_engine/
	cons/seed1.cc: Likewise.
	* testsuite/26_numerics/random/subtract_with_carry_engine/
	cons/seed2.cc: Likewise.
	* testsuite/26_numerics/random/subtract_with_carry_engine/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/subtract_with_carry_engine/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/subtract_with_carry_engine/
	operators/equal.cc: Likewise.
	* testsuite/26_numerics/random/subtract_with_carry_engine/
	operators/serialize.cc: Likewise.
	* testsuite/26_numerics/random/discard_block_engine/cons/
	base_move.cc: Likewise.
	* testsuite/26_numerics/random/discard_block_engine/cons/
	seed1.cc: Likewise.
	* testsuite/26_numerics/random/discard_block_engine/cons/
	seed2.cc: Likewise.
	* testsuite/26_numerics/random/discard_block_engine/cons/
	base_copy.cc: Likewise.
	* testsuite/26_numerics/random/discard_block_engine/cons/
	default.cc: Likewise.
	* testsuite/26_numerics/random/discard_block_engine/cons/
	seed_seq.cc: Likewise.
	* testsuite/26_numerics/random/discard_block_engine/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/discard_block_engine/
	operators/equal.cc: Likewise.
	* testsuite/26_numerics/random/discard_block_engine/
	operators/serialize.cc: Likewise.
	* testsuite/26_numerics/random/cauchy_distribution/
	cons/parms.cc: Likewise.
	* testsuite/26_numerics/random/cauchy_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/cauchy_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/negative_binomial_distribution/
	cons/parms.cc: Likewise.
	* testsuite/26_numerics/random/negative_binomial_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/negative_binomial_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/gamma_distribution/
	cons/parms.cc: Likewise.
	* testsuite/26_numerics/random/gamma_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/gamma_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/mersenne_twister_engine/
	cons/seed1.cc: Likewise.
	* testsuite/26_numerics/random/mersenne_twister_engine/
	cons/seed2.cc: Likewise.
	* testsuite/26_numerics/random/mersenne_twister_engine/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/mersenne_twister_engine/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/mersenne_twister_engine/
	operators/equal.cc: Likewise.
	* testsuite/26_numerics/random/mersenne_twister_engine/
	operators/serialize.cc: Likewise.
	* testsuite/26_numerics/random/fisher_f_distribution/
	cons/parms.cc: Likewise.
	* testsuite/26_numerics/random/fisher_f_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/fisher_f_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/exponential_distribution/
	cons/parms.cc: Likewise.
	* testsuite/26_numerics/random/exponential_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/exponential_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/binomial_distribution/
	cons/parms.cc: Likewise.
	* testsuite/26_numerics/random/binomial_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/binomial_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/lognormal_distribution/
	cons/parms.cc: Likewise.
	* testsuite/26_numerics/random/lognormal_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/lognormal_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/mt19937_64.cc: Likewise.
	* testsuite/26_numerics/random/random_device/cons/
	token.cc: Likewise.
	* testsuite/26_numerics/random/random_device/cons/
	default.cc: Likewise.
	* testsuite/26_numerics/random/random_device/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/ranlux24.cc: Likewise.
	* testsuite/26_numerics/random/extreme_value_distribution/
	cons/parms.cc: Likewise.
	* testsuite/26_numerics/random/extreme_value_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/extreme_value_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/piecewise_linear_distribution/
	cons/range.cc: Likewise.
	* testsuite/26_numerics/random/piecewise_linear_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/piecewise_linear_distribution/
	cons/num_xbound_fun.cc: Likewise.
	* testsuite/26_numerics/random/piecewise_linear_distribution/
	cons/initlist_fun.cc: Likewise.
	* testsuite/26_numerics/random/piecewise_linear_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/student_t_distribution/
	cons/parms.cc: Likewise.
	* testsuite/26_numerics/random/student_t_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/student_t_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/linear_congruential_engine/
	cons/seed1.cc: Likewise.
	* testsuite/26_numerics/random/linear_congruential_engine/
	cons/seed2.cc: Likewise.
	* testsuite/26_numerics/random/linear_congruential_engine/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/linear_congruential_engine/
	requirements/non_uint_neg.cc: Likewise.
	* testsuite/26_numerics/random/linear_congruential_engine/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/linear_congruential_engine/
	operators/equal.cc: Likewise.
	* testsuite/26_numerics/random/linear_congruential_engine/
	operators/serialize.cc: Likewise.
	* testsuite/26_numerics/random/ranlux48.cc: Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/cons/
	base_move.cc: Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/cons/
	seed1.cc: Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/cons/
	seed2.cc: Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/cons/
	base_copy.cc: Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/cons/
	default.cc: Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/cons/
	seed_seq.cc: Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/
	operators/equal.cc: Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/
	operators/serialize.cc: Likewise.
	* testsuite/26_numerics/random/geometric_distribution/
	cons/parms.cc: Likewise.
	* testsuite/26_numerics/random/geometric_distribution/
	cons/default.cc: Likewise.
	* testsuite/26_numerics/random/geometric_distribution/
	requirements/typedefs.cc: Likewise.
	* testsuite/26_numerics/random/knuth_b.cc: Likewise.

From-SVN: r150361
2009-08-02 23:35:41 +00:00
Jason Merrill 4fcf08308d update license
From-SVN: r150328
2009-07-31 23:56:47 -04:00
Jason Merrill e7f1930f94 call.c (convert_class_to_reference): Binding an lvalue to an rvalue reference is bad.
* call.c (convert_class_to_reference): Binding an lvalue to an
	rvalue reference is bad.  If the user-defined conversion is bad,
	set bad_p before merging conversions.
	(maybe_handle_ref_bind): Don't push down bad_p.
	(reference_binding): Binding an lvalue to an rvalue reference is bad.
	(convert_like_real): Give a helpful error about binding lvalue
	to rvalue reference.
	(reference_related_p): No longer static.
	* typeck.c (build_typed_address): New.
	(build_static_cast_1): Add static_cast from lvalue to &&.
	* cp-tree.h: Adjust.

	* include/bits/move.h (forward): Implement as in N2835.
	(move): Implement as in N2831.
	* include/std/istream (rvalue stream operator>>): New.
	* include/std/ostream (rvalue stream operator<<): New.

Co-Authored-By: Douglas Gregor <doug.gregor@gmail.com>

From-SVN: r150327
2009-07-31 22:26:42 -04:00
Jason Merrill 4c65085391 forward_list.h (splice_after): Use forward.
* include/bits/forward_list.h (splice_after): Use forward.
	(merge): Likewise.
	* include/bits/stl_iterator.h (move_iterator::operator*): Use move.
	(move_iterator::operator[]): Use move.
	* include/bits/stl_list.h (insert): Use move.
	* include/std/thread (_Callable constructor): Use forward.
	* include/std/tuple: Don't specify explicit template args to move.

From-SVN: r150326
2009-07-31 22:26:32 -04:00
Paolo Carlini bd31ae23b2 PR libstdc++/40912 (partial)
2009-07-31  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/40912 (partial)
	* include/std/random: Disable the facility if <stdint.h> is not
	available.

From-SVN: r150312
2009-07-31 12:19:26 +00:00
John David Anglin 930e51379c re PR libstdc++/40919 (FAIL: 26_numerics/headers/cmath/c99_classification_macros_c.cc)
PR libstdc++/40919
	* testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
	xfail on darwin[3-9]*.

From-SVN: r150278
2009-07-30 22:34:31 +00:00
Paolo Carlini 7ce18a45cb re PR libstdc++/40917 (FAIL: ext/array_allocator/check_delete.cc (test for excess errors))
2009-07-30  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/40917
	* testsuite/util/replacement_memory_operators.h: Add missing includes,
	tweak qualifications.

2009-07-30  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/40916
	* testsuite/23_containers/list/modifiers/swap/1.cc: Fix include order.
	* testsuite/23_containers/list/modifiers/swap/2.cc: Likewise.
	* testsuite/23_containers/list/modifiers/swap/2.cc: Likewise.

From-SVN: r150272
2009-07-30 21:02:44 +00:00
Ralf Wildenhues 1b3b24c2a6 extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Do not expand for Autoconf 2.62 or newer.
config/
	* extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Do not expand
	for Autoconf 2.62 or newer.
	* tls.m4 (GCC_CHECK_TLS): Fix m4 quotation.
	* no-executables.m4 (_AC_COMPILER_EXEEXT): Fix m4 quotation.
	* override.m4 (m4_copy_force, m4_rename_force): Provide
	macros if not defined.
	(AC_PREREQ): Use m4_copy_force.

boehm-gc/
	* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libada/
	* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libffi/
	* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libgfortran/
	* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libgomp/
	* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libjava/
	* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libmudflap/
	* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libobjc/
	* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libssp/
	* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

zlib/
	* configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.

libstdc++-v3/
	* acinclude.m4 (GLIBCXX_CONFIGURE): Use m4_rename_force.

From-SVN: r150269
2009-07-30 19:41:13 +00:00
Paolo Carlini 4380ae3548 re PR libstdc++/40915 ([4.5 Regressions] FAIL: 18_support/headers/exception/synopsis.cc (test for excess errors))
2009-07-30  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/40915
	* testsuite/18_support/headers/exception/synopsis.cc: Fix
	std::terminate declaration.

From-SVN: r150260
2009-07-30 15:26:44 +00:00
Paolo Carlini 0699748fe0 re PR libstdc++/40908 (FAIL: abi_check)
2009-07-29  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/40908
	* config/abi/pre/gnu.ver: Avoid exporting inadvertently std::mutex
	symbols at GLIBCXX_3.4.

From-SVN: r150228
2009-07-29 21:00:10 +00:00
Paolo Carlini 95bfca5ed6 gnu.ver: Add GLIBCXX_3.4.13, move a symbol into it.
2009-07-29  Paolo Carlini  <paolo.carlini@oracle.com>

	* config/abi/pre/gnu.ver: Add GLIBCXX_3.4.13, move a symbol into it.
	* testsuite/util/testsuite_abi.cc: Adjust.
	* configure.ac: Bump libtool_VERSION to 6:13:0.
	* configure: Regenerate.

From-SVN: r150220
2009-07-29 18:40:39 +00:00
Benjamin Kosnik 8a25910570 configure.xml: Consistent placement of ABI-changing options, clarify --enable-clocale.
2009-07-28  Benjamin Kosnik  <bkoz@redhat.com>
            Tyler Earman  <rem.intellegare@gmail.com>

        * doc/xml/manual/configure.xml: Consistent placement of
        ABI-changing options, clarify --enable-clocale.


Co-Authored-By: Tyler Earman <rem.intellegare@gmail.com>

From-SVN: r150195
2009-07-29 01:53:49 +00:00
Ralf Wildenhues 5268acda32 Makefile.in: Regenerate.
libstdc++-v3/
	* python/Makefile.in: Regenerate.

From-SVN: r150140
2009-07-28 04:45:21 +00:00
Ralf Wildenhues a348618dae Makefile.am (install-data-local): Use DESTDIR correctly.
libstdc++-v3/
	* python/Makefile.am (install-data-local): Use DESTDIR
	correctly.

From-SVN: r150135
2009-07-27 20:21:30 +00:00
Jason Merrill 67a6e81679 Core issue 901
Core issue 901
	* libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Handle NULL
	dealloc.
	* call.c (build_op_delete_call): If this is for a new-expression
	and the op delete is deleted, do nothing.

From-SVN: r150073
2009-07-24 23:57:20 -04:00
Joseph Myers 2e0814c8d6 cwchar (swprintf, vswprintf): Do not use if _GLIBCXX_HAVE_BROKEN_VSWPRINTF.
* include/c_global/cwchar (swprintf, vswprintf): Do not use if
	_GLIBCXX_HAVE_BROKEN_VSWPRINTF.
	* testsuite/lib/libstdc++.exp (check_v3_target_swprintf): New.
	* testsuite/lib/dg-options.exp (dg-require-swprintf): New.
	* testsuite/21_strings/headers/cwchar/functions_std.cc,
	testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/4402.cc,
	testsuite/27_io/basic_ostream/inserters_other/wchar_t/error_code.cc:
	Use dg-require-swprintf.

From-SVN: r150063
2009-07-24 21:55:59 +01:00
Paolo Carlini fcbaa582da dr630-2.cc: Extend.
2009-07-24  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/26_numerics/valarray/dr630-2.cc: Extend.

From-SVN: r150060
2009-07-24 16:38:29 +00:00
Paolo Carlini 7cf8aefccf cmath (abs(_Tp)): Add.
2009-07-23  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/c_std/cmath (abs(_Tp)): Add.
	* include/c_global/cmath (abs(_Tp)): Likewise.
	* testsuite/26_numerics/headers/cmath/overloads.cc: Extend.

From-SVN: r150022
2009-07-23 18:38:22 +00:00
Paolo Carlini 2304116044 lwg-closed.html: Update to R65.
2009-07-23  Paolo Carlini  <paolo.carlini@oracle.com>

	* doc/html/ext/lwg-closed.html: Update to R65.
	* doc/html/ext/lwg-defects.html: Likewise.
	* doc/html/ext/lwg-active.html: Likewise.
	* doc/xml/manual/intro.xml: Update DRs entries.

From-SVN: r150017
2009-07-23 15:50:40 +00:00
Paolo Carlini f50e1d8436 lwg-closed.html: Update to R65.
2009-07-23  Paolo Carlini  <paolo.carlini@oracle.com>

	* doc/html/ext/lwg-closed.html: Update to R65.
	* doc/html/ext/lwg-defects.html: Likewise.
	* doc/html/ext/lwg-active.html: Likewise.
	* doc/xml/manual/intro.xml: Update DRs entries.

From-SVN: r150016
2009-07-23 15:50:16 +00:00
Jason Merrill 61e6d522e0 mangle.c (mangle_type_string_for_rtti): Rename to be clearer.
* mangle.c (mangle_type_string_for_rtti): Rename to be clearer.
	(needs_fake_anon): New.
	(write_name): Check it.
	(write_nested_name): Add a fake anonymous namespace scope if true.
	* name-lookup.c (get_anonymous_namespace_name): No longer static.
	* rtti.c, cp-tree.h: Adjust.

	* libsupc++/typeinfo (__GXX_MERGED_TYPEINFO_NAMES): Default to 0.

From-SVN: r149964
2009-07-22 19:03:22 -04:00
Paolo Carlini af4beb4b95 valarray (valarray<>::operator=(const valarray<>&), [...]): Implement resolution of DR 630, [Ready] in Frankfurt.
2009-07-22  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/std/valarray (valarray<>::operator=(const valarray<>&),
	valarray<>::operator=(initializer_list<>)): Implement resolution
	of DR 630, [Ready] in Frankfurt.
	* testsuite/26_numerics/valarray/dr630-1.cc: New.
	* testsuite/26_numerics/valarray/dr630-2.cc: Likewise.
	* doc/xml/manual/intro.xml: Add an entry for DR 630.

From-SVN: r149929
2009-07-22 12:19:58 +00:00
Paolo Carlini 513c5a5bd9 chrono (duration<>::operator%=, operator%): Add, per DR 934.
2009-07-21  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/std/chrono (duration<>::operator%=,  operator%):
	Add, per DR 934.
	* testsuite/20_util/duration/arithmetic/dr934-1.cc: New.
	* testsuite/20_util/duration/arithmetic/dr934-2.cc: Likewise.

	* include/std/chrono (operator/): Simplify implementation.

From-SVN: r149856
2009-07-21 14:48:47 +00:00
Benjamin Kosnik 7fa94fbb93 intro.xml: Escape '&', validate.
2009-07-20  Benjamin Kosnik  <bkoz@redhat.com>

	* doc/xml/manual/intro.xml: Escape '&', validate.
	* doc/xml/manual/using.xml: Validate, dead link check.
	* doc/xml/manual/strings.xml: Same.
	* doc/xml/manual/appendix_contributing.xml: Same.
	* doc/xml/manual/iterators.xml: Same.
	* doc/xml/manual/spine.xml: Same.

	* doc/xml/faq.xml: Remove redundant xreflabel entities.
	* doc/xml/gnu/gpl-3.0.xml: Same.
	* doc/xml/manual/mt_allocator.xml: Same.
	* doc/xml/manual/allocator.xml: Same.
	* doc/xml/manual/ctype.xml: Same.
	* doc/xml/manual/codecvt.xml: Same.
	* doc/xml/manual/backwards_compatibility.xml: Same.
	* doc/xml/manual/shared_ptr.xml: Same.
	* doc/xml/manual/abi.xml: Same.
	* doc/xml/manual/auto_ptr.xml: Same.
	* doc/xml/manual/internals.xml: Same.
	* doc/xml/manual/parallel_mode.xml: Same.
	* doc/xml/manual/bitmap_allocator.xml: Same.
	* doc/xml/manual/build_hacking.xml: Same.
	* doc/xml/manual/evolution.xml: Same.
	* doc/xml/manual/debug.xml: Same.
	* doc/xml/manual/localization.xml: Same.
	* doc/xml/manual/appendix_contributing.xml: Same.
	* doc/xml/manual/locale.xml: Same.
	* doc/xml/manual/messages.xml: Same.
	* doc/xml/manual/spine.xml: Same.
	* doc/xml/manual/test.xml: Same.
	* doc/xml/book.txml: Same.
	* doc/xml/spine.xml: Same.

	* doc/xml/api.xml: Clean up ulink targets, convert to link if possible.
	* doc/xml/manual/backwards_compatibility.xml: Same.
	* doc/xml/manual/concurrency.xml: Same.
	* doc/xml/manual/intro.xml: Same.
	* doc/xml/manual/parallel_mode.xml: Same.
	* doc/xml/manual/status_cxx1998.xml: Same.
	* doc/xml/manual/containers.xml: Same.
	* doc/xml/manual/io.xml: Same.
	* doc/xml/manual/support.xml: Same.
	* doc/xml/manual/strings.xml: Same.
	* doc/xml/manual/debug_mode.xml: Same.
	* doc/xml/manual/extensions.xml: Same.
	* doc/xml/manual/appendix_contributing.xml: Same.
	* doc/xml/manual/messages.xml: Same.
	* doc/xml/manual/test.xml: Same.

	* doc/xml/manual/abi.xml: Same.
	* doc/xml/manual/auto_ptr.xml: Same.
	* doc/xml/manual/parallel_mode.xml: Same.
	* doc/xml/manual/build_hacking.xml: Same.
	* doc/xml/manual/evolution.xml: Same.
	* doc/xml/manual/using.xml: Same.
	* doc/xml/manual/debug_mode.xml: Same.
	* doc/xml/manual/extensions.xml: Same.
	* doc/xml/manual/diagnostics.xml: Same.
	* doc/xml/manual/algorithms.xml: Same.

	* doc/html: Regenerate.

From-SVN: r149845
2009-07-21 04:28:41 +00:00
Benjamin Kosnik 50fbf0c35d intro.xml: Escape '&', validate.
2009-07-20  Benjamin Kosnik  <bkoz@redhat.com>

	* doc/xml/manual/intro.xml: Escape '&', validate.
	* doc/xml/manual/using.xml: Validate, dead link check.
	* doc/xml/manual/strings.xml: Same.
	* doc/xml/manual/appendix_contributing.xml: Same.
	* doc/xml/manual/iterators.xml: Same.
	* doc/xml/manual/spine.xml: Same.

	* doc/xml/faq.xml: Remove redundant xreflabel entities.
	* doc/xml/gnu/gpl-3.0.xml: Same.
	* doc/xml/manual/mt_allocator.xml: Same.
	* doc/xml/manual/allocator.xml: Same.
	* doc/xml/manual/ctype.xml: Same.
	* doc/xml/manual/codecvt.xml: Same.
	* doc/xml/manual/backwards_compatibility.xml: Same.
	* doc/xml/manual/shared_ptr.xml: Same.
	* doc/xml/manual/abi.xml: Same.
	* doc/xml/manual/auto_ptr.xml: Same.
	* doc/xml/manual/internals.xml: Same.
	* doc/xml/manual/parallel_mode.xml: Same.
	* doc/xml/manual/bitmap_allocator.xml: Same.
	* doc/xml/manual/build_hacking.xml: Same.
	* doc/xml/manual/evolution.xml: Same.
	* doc/xml/manual/debug.xml: Same.
	* doc/xml/manual/localization.xml: Same.
	* doc/xml/manual/appendix_contributing.xml: Same.
	* doc/xml/manual/locale.xml: Same.
	* doc/xml/manual/messages.xml: Same.
	* doc/xml/manual/spine.xml: Same.
	* doc/xml/manual/test.xml: Same.
	* doc/xml/book.txml: Same.
	* doc/xml/spine.xml: Same.

	* doc/xml/api.xml: Clean up ulink targets, convert to link if possible.
	* doc/xml/manual/backwards_compatibility.xml: Same.
	* doc/xml/manual/concurrency.xml: Same.
	* doc/xml/manual/intro.xml: Same.
	* doc/xml/manual/parallel_mode.xml: Same.
	* doc/xml/manual/status_cxx1998.xml: Same.
	* doc/xml/manual/containers.xml: Same.
	* doc/xml/manual/io.xml: Same.
	* doc/xml/manual/support.xml: Same.
	* doc/xml/manual/strings.xml: Same.
	* doc/xml/manual/debug_mode.xml: Same.
	* doc/xml/manual/extensions.xml: Same.
	* doc/xml/manual/appendix_contributing.xml: Same.
	* doc/xml/manual/messages.xml: Same.
	* doc/xml/manual/test.xml: Same.

	* doc/html: Regenerate.

From-SVN: r149844
2009-07-21 02:47:00 +00:00
Benjamin Kosnik 47f6d7acfb intro.xml: Escape '&', validate.
2009-07-20  Benjamin Kosnik  <bkoz@redhat.com>

	* doc/xml/manual/intro.xml: Escape '&', validate.
	* doc/xml/manual/using.xml: Validate, dead link check.
	* doc/xml/manual/strings.xml: Same.
	* doc/xml/manual/appendix_contributing.xml: Same.
	* doc/xml/manual/iterators.xml: Same.
	* doc/xml/manual/spine.xml: Same.

	* doc/xml/faq.xml: Remove redundant xreflabel entities.
	* doc/xml/gnu/gpl-3.0.xml: Same.
	* doc/xml/manual/mt_allocator.xml: Same.
	* doc/xml/manual/allocator.xml: Same.
	* doc/xml/manual/ctype.xml: Same.
	* doc/xml/manual/codecvt.xml: Same.
	* doc/xml/manual/backwards_compatibility.xml: Same.
	* doc/xml/manual/shared_ptr.xml: Same.
	* doc/xml/manual/abi.xml: Same.
	* doc/xml/manual/auto_ptr.xml: Same.
	* doc/xml/manual/internals.xml: Same.
	* doc/xml/manual/parallel_mode.xml: Same.
	* doc/xml/manual/bitmap_allocator.xml: Same.
	* doc/xml/manual/build_hacking.xml: Same.
	* doc/xml/manual/evolution.xml: Same.
	* doc/xml/manual/debug.xml: Same.
	* doc/xml/manual/localization.xml: Same.
	* doc/xml/manual/appendix_contributing.xml: Same.
	* doc/xml/manual/locale.xml: Same.
	* doc/xml/manual/messages.xml: Same.
	* doc/xml/manual/spine.xml: Same.
	* doc/xml/manual/test.xml: Same.
	* doc/xml/book.txml: Same.
	* doc/xml/spine.xml: Same.

	* doc/html: Regenerate.

From-SVN: r149835
2009-07-20 20:35:28 +00:00
Benjamin Kosnik fb8c6cc97a intro.xml: Escape '&', validate.
2009-07-20  Benjamin Kosnik  <bkoz@redhat.com>

	* doc/xml/manual/intro.xml: Escape '&', validate.
	* doc/xml/manual/using.xml: Validate, dead link check.
	* doc/xml/manual/strings.xml: Same.
	* doc/xml/manual/appendix_contributing.xml: Same.
	* doc/xml/manual/iterators.xml: Same.
	* doc/xml/manual/spine.xml: Same.

	* doc/html: Regenerate.

From-SVN: r149831
2009-07-20 19:20:27 +00:00
Paolo Carlini af90c8c9ae re PR libstdc++/40712 (locale(const locale&, const char*, locale::category) can create broken locale)
2009-07-18  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/40712
	* config/locale/gnu/numeric_members.cc (numpunct<>::
	_M_initialize_numpunct): Dynamically allocate _M_data->_M_grouping
	and copy the langinfo data into it.
	(numpunct<>::~numpunct): Free the allocated memory.
	* config/locale/gnu/monetary_members.cc (moneypunct<>::
	_M_initialize_moneypunct): Dynamically allocate _M_data->_M_grouping,
	_M_data->_M_positive_sign, _M_data->_M_negative_sign,
	_M_data->_M_curr_symbol.
	(moneypunct<>::~moneypunct): Free the allocated memory.
	* testsuite/22_locale/moneypunct/40712.cc: New.

	* include/bits/locale_facets.tcc (__numpunct_cache<>::_M_cache):
	Do not leak memory if new throws.
	* include/bits/locale_facets_nonio.tcc
	(__moneypunct_cache<>::_M_cache): Likewise.

From-SVN: r149782
2009-07-18 22:58:10 +00:00
Joseph Myers e7d5b5b9c4 re PR other/40784 (Revision 149725 caused autoconf warning in libstdc++)
PR other/40784
config:
	* tls.m4 (GCC_CHECK_TLS): Add extra quoting around argument to
	AC_LINK_IFELSE.

libjava:
	* configure: Regenerate.

libstdc++-v3:
	* configure: Regenerate.

From-SVN: r149748
2009-07-17 16:08:36 +01:00
Benjamin Kosnik 596cf1ccde testsuite_common_types.h (standard_layout): Activate.
2009-07-16  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/util/testsuite_common_types.h (standard_layout): Activate.
	* testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: Adjust
	line numbers.
	* testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Same.
	* testsuite/29_atomics/atomic/cons/assign_neg.cc: Same.
	* testsuite/29_atomics/atomic/cons/copy_neg.cc: Same.

From-SVN: r149730
2009-07-17 00:16:33 +00:00