Skip to content
Snippets Groups Projects
  1. Aug 06, 2013
    • Paolo Carlini's avatar
      2013-08-06 Paolo Carlini <paolo.carlini@oracle.com> · 6ffd1096
      Paolo Carlini authored
      	Revert the last commit.
      
      From-SVN: r201525
      6ffd1096
    • François Dumont's avatar
      hashtable_policy.h (_Hashtable_alloc): New. · a3d4b3d7
      François Dumont authored
      2013-08-06  François Dumont  <fdumont@gcc.gnu.org>
      
      	* include/bits/hashtable_policy.h (_Hashtable_alloc): New.
      	(_ReuseOrAllocNode, _AllocNode): Adapt to use latter rather than
      	_Hashtable.
      	(_Before_begin<>): Remove.
      	* include/bits/hashtable.h (_Hashtable): Inherit from
      	_Hashtable_alloc and adapt. Restore _M_before_begin field.
      	* python/libstdcxx/v6/printers.py (StdHashtableIterator): Adapt
      	access to hashtable before begin.
      	* testsuite/23_containers/unordered_set/
      	not_default_constructible_hash_neg.cc: Adapt dg-error line number.
      	* testsuite/23_containers/unordered_set/instantiation_neg.cc:
      	Likewise.
      
      From-SVN: r201522
      a3d4b3d7
  2. Aug 03, 2013
    • Tim Shen's avatar
      Implement bracket expression. · 399eeef9
      Tim Shen authored
      2013-08-03  Tim Shen  <timshen91@gmail.com>
      
      	Implement bracket expression.
      	* include/bits/regex.h: Remove constexpr from "|=", etc.
      	* include/bits/regex_compiler.h: Parse bracket expression.
      	* include/bits/regex_nfa.h: _Comparator and _BracketMatcher(old
      	_RangeMatcher).
      	* include/bits/regex_nfa.tcc: Implement them.
      	* testsuite/28_regex/algorithms/regex_match/extended/53622.cc:
      	from regex_search to regex_match.
      	* testsuite/28_regex/algorithms/regex_match/extended/
      	cstring_bracket_01.cc: New.
      
      From-SVN: r201465
      399eeef9
  3. Aug 02, 2013
  4. Aug 01, 2013
    • François Dumont's avatar
      re PR libstdc++/57779 (vector insert fails to diagnose iterators pointing into *this in debug mode) · 5720787a
      François Dumont authored
      2013-08-01  François Dumont  <fdumont@gcc.gnu.org>
      
      	PR libstdc++/57779
      	* include/debug/formatter.h (_Debug_msg_id): Add
      	__msg_insert_itself_range entry.
      	* include/debug/functions.h (_Insert_range_from_self_is_safe<>):
      	New, indicate container types supporting self range insertion in
      	GNU implementation.
      	(__foreign_iterator): New, check if an iterator points to a given
      	sequence.
      	* include/debug/macros.h (__glibcxx_check_insert_range): Add check
      	using __foreign_iterator.
      	(__gibcxx_check_insert_range_after): Likewise.
      	* include/debug/string (_Insert_range_from_self_is_safe<>):
      	Partially specialized to mark __gnu_debug::basic_string<> as
      	supporting self range insert.
      	* include/debug/list (_Insert_range_from_self_is_safe<>):
      	Partially specialized to mark std::list as supporting self range
      	insert if _GLIBCXX_DEBUG_PEDANTIC is not defined.
      	* include/debug/forward_list (_Insert_range_from_self_is_safe<>):
      	Likewise.
      	* src/c++11/debug.cc (_S_debug_messages): Add
      	__msg_insert_itself_range_entry message.
      	(_Error_formatter::_Parameter::_M_print_description): Display
      	iterator sequence address rather than sequence address when the
      	parameter type is an iterator.
      	(_Error_formatter::_M_print_word): Enhance behavior when
      	displaying a word with an appended '\n'.
      	* testsuite/util/debug/checks.h (check_insert4<>): New.
      	* testsuite/23_containers/deque/debug/insert5_neg.cc: New.
      	* testsuite/23_containers/vector/debug/insert5_neg.cc: Likewise.
      	* testsuite/23_containers/vector/debug/insert6_neg.cc: Likewise.
      	* testsuite/23_containers/vector/debug/57779_neg.cc: Likewise.
      	* testsuite/23_containers/list/debug/insert5_neg.cc: Likewise.
      	* testsuite/23_containers/forward_list/debug/insert_after4_neg.cc:
      	Likewise.
      
      From-SVN: r201416
      5720787a
    • Fabien Chêne's avatar
      re PR c++/54537 (undiagnosed using-declaration conflicting with used function) · fb23b69e
      Fabien Chêne authored
      
      gcc/cp/
              PR c++/54537
              * cp-tree.h: Check OVL_USED with OVERLOAD_CHECK.
              * name-lookup.c (do_nonmember_using_decl): Make sure we have an
      	OVERLOAD before calling OVL_USED. Call diagnose_name_conflict
      	instead of issuing an error without mentioning the conflicting
      	declaration.
      
      libstdc++-v3/
              PR c++/54537
      	* include/tr1/cmath: Remove pow(double,double) overload, remove a
      	duplicated comment about DR 550. Add a comment to explain the
      	issue.
      	* testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: New.
      
      gcc/testsuite/
              PR c++/54537
              * g++.dg/overload/using3.C: New.
      	* g++.dg/overload/using2.C: Adjust.
      	* g++.dg/lookup/using9.C: Likewise.
      
      Co-Authored-By: default avatarPeter Bergner <bergner@vnet.ibm.com>
      
      From-SVN: r201414
      fb23b69e
  5. Jul 31, 2013
    • Tim Shen's avatar
      Thompson matcher refactored. · 95c7d828
      Tim Shen authored
      2013-07-31  Tim Shen  <timshen91@gmail.com>
      
      	Thompson matcher refactored. Fix grouping problem.
      	* include/bits/regex.h: Use a dispatcher _M_get_matcher().
      	* include/bits/regex_compiler.h: Tweak for auto switching.
      	* include/bits/regex_grep_matcher.h: Class structure.
      	* include/bits/regex_grep_matcher.tcc: _BFSMatcher(Thompson
      	matcher) refactoring.
      	* include/bits/regex_nfa.h: Change _Results's interfaces.
      	* include/std/regex: Includes <map> and <queue>.
      	* testsuite/28_regex/algorithms/regex_match/extended/53622.cc:
      	For both matchers.
      	* testsuite/28_regex/algorithms/regex_match/extended/57173.cc:
      	For both matchers.
      	* testsuite/28_regex/algorithms/regex_match/extended/
      	string_dispatch_01.cc: New.
      
      From-SVN: r201391
      95c7d828
    • Paolo Carlini's avatar
      re PR libstdc++/56627 (class hash instead of struct hash) · 4333e4dc
      Paolo Carlini authored
      2013-07-31  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/56627
      	* include/bits/stl_bvector.h: Use friend struct hash intead of
      	friend class hash to work around useless warnings produced by
      	some compilers.
      	* include/std/bitset: Likewise.
      
      From-SVN: r201377
      4333e4dc
    • Paolo Carlini's avatar
      functexcept.cc: Do not include the whole <regex>. · a781834e
      Paolo Carlini authored
      2013-07-31  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* src/c++11/functexcept.cc: Do not include the whole <regex>.
      	* src/c++11/regex.cc: Likewise.
      
      From-SVN: r201369
      a781834e
    • Tim Shen's avatar
      Revert last commit. · 11510532
      Tim Shen authored
      From-SVN: r201360
      11510532
    • Tim Shen's avatar
      Thompson matcher refactored. · abf1719e
      Tim Shen authored
      2013-07-31  Tim Shen  <timshen91@gmail.com>
      
      	Thompson matcher refactored. Fix grouping problem.
      	* include/bits/regex.h: Use a dispatcher _M_get_matcher().
      	* include/bits/regex_compiler.h: Tweak for auto switching.
      	* include/bits/regex_grep_matcher.h: Class structure.
      	* include/bits/regex_grep_matcher.tcc: _BFSMatcher(Thompson
      	matcher) refactoring.
      	* include/bits/regex_nfa.h: Change _Results's interfaces.
      	* include/std/regex: Includes <map> and <queue>.
      	* testsuite/28_regex/algorithms/regex_match/extended/53622.cc:
      	For both matchers.
      	* testsuite/28_regex/algorithms/regex_match/extended/57173.cc:
      	For both matchers.
      	* testsuite/28_regex/algorithms/regex_match/extended/
      	string_dispatch_01.cc: New.
      
      From-SVN: r201358
      abf1719e
  6. Jul 30, 2013
    • Paolo Carlini's avatar
      2013-07-30 Paolo Carlini <paolo.carlini@oracle.com> · 9a92fa8b
      Paolo Carlini authored
      	Revert last commit.
      
      From-SVN: r201349
      9a92fa8b
    • Paolo Carlini's avatar
      2013-07-30 Paolo Carlini <paolo.carlini@oracle.com> · 5034aa21
      Paolo Carlini authored
      	Revert last commit.
      
      From-SVN: r201348
      5034aa21
    • Tim Shen's avatar
      Thompson matcher refactored. · a6dc77bc
      Tim Shen authored
      2013-07-30  Tim Shen  <timshen91@gmail.com>
      
      	Thompson matcher refactored. Fix grouping problem.
      	* include/bits/regex.h: Use a dispatcher _M_get_matcher().
      	* include/bits/regex_compiler.h: Tweak for auto switching.
      	* include/bits/regex_grep_matcher.h: Class structure.
      	* include/bits/regex_grep_matcher.tcc: _BFSMatcher(Thompson
      	matcher) refactoring.
      	* include/bits/regex_nfa.h: Change _Results's interfaces.
      	* include/std/regex: Includes <map> and <queue>.
      	* testsuite/28_regex/algorithms/regex_match/extended/53622.cc:
      	For both matchers.
      	* testsuite/28_regex/algorithms/regex_match/extended/57173.cc:
      	For both matchers.
      	* testsuite/28_regex/algorithms/regex_match/extended/string_dispatch_01.cc:
      	New.
      
      From-SVN: r201334
      a6dc77bc
  7. Jul 29, 2013
    • Nathan Froyd's avatar
      atomic (compare_exchange_weak, [...]): Add call to __cmpexch_failure_order. · 272827e4
      Nathan Froyd authored
      libstdc++-v3/
      	* include/std/atomic (compare_exchange_weak, compare_exchange_strong):
      	Add call to __cmpexch_failure_order.
      	* testsuite/util/testsuite_common_types.h
      	(compare_exchange_order_lowering): New generator.
      	* testsuite/29_atomics/atomic/requirements/compare_exchange_lowering.cc:
      	New test.
      
      From-SVN: r201315
      272827e4
  8. Jul 28, 2013
  9. Jul 25, 2013
    • Paolo Carlini's avatar
      complex (pow(const complex<>&, int)): Enable in C++11 mode too. · 4e30cb71
      Paolo Carlini authored
      2013-07-25  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/std/complex (pow(const complex<>&, int)): Enable in
      	C++11 mode too.
      	* testsuite/26_numerics/complex/dr844.cc: Adjust.
      	* doc/xml/manual/intro.xml: Update.
      
      From-SVN: r201253
      4e30cb71
    • Tim Shen's avatar
      Add documents and comments. · 105164bb
      Tim Shen authored
      2013-07-25  Tim Shen  <timshen91@gmail.com>
      
      	Add documents and comments.
      	* include/bits/regex.h: Documents and comments.
      	* include/bits/regex_grep_matcher.h: Likewise.
      	* include/bits/regex_grep_matcher.tcc: Likewise.
      	* testsuite/28_regex/iterators/regex_iterator/char/string_position_01.cc:
      	New.
      
      From-SVN: r201244
      105164bb
    • Paolo Carlini's avatar
      re PR libstdc++/57976 (Missing time_get<>::get() functions) · 484b502a
      Paolo Carlini authored
      2013-07-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/57976
      	* doc/xml/manual/status_cxx2011.xml: Note missing time_get::get and
      	time_get::do_get.
      
      From-SVN: r201234
      484b502a
  10. Jul 24, 2013
    • Paolo Carlini's avatar
      random.h (random_device): Avoid using the FILE type. · 821f6f1b
      Paolo Carlini authored
      2013-07-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/random.h (random_device): Avoid using the FILE type.
      	* include/std/random: Do not include <cstdio>.
      	* src/c++11/random.cc: ... include it here.
      	(random_device::_M_init, random_device::_M_fini,
      	random_device::_M_getval): Cast back and forth void* and FILE*.
      
      From-SVN: r201215
      821f6f1b
    • Tim Shen's avatar
      Reimplment matcher using Depth-first search(backtracking). · 37c74e28
      Tim Shen authored
      2013-07-24  Tim Shen  <timshen91@gmail.com>
      
      	Reimplment matcher using Depth-first search(backtracking).
      	PR libstdc++/53622
      	PR libstdc++/57173
      	* include/bits/regex.h: regex_match() and regex_search().
      	* include/bits/regex_cursor.h: Fix _M_set_pos().
      	* include/bits/regex_grep_matcher.h: add _M_dfs_match().
      	* include/bits/regex_grep_matcher.tcc: Implement it.
      	* testsuite/28_regex/algorithms/regex_match/extended/string_group_01.cc:
      	New.
      	* testsuite/28_regex/algorithms/regex_match/extended/string_group_02.cc:
      	New.
      	* testsuite/28_regex/algorithms/regex_search/basic/string_01.cc:
      	Remove xfail.
      
      From-SVN: r201213
      37c74e28
  11. Jul 23, 2013
    • Tim Shen's avatar
      Implement regex_iterator and regex_token_iterator. · 407a0fa3
      Tim Shen authored
      2013-07-23  Tim Shen  <timshen91@gmail.com>
      
      	Implement regex_iterator and regex_token_iterator.
      	* include/bits/regex.h: regex_iterator and regex_token_iterator.
      	* testsuite/28_regex/iterators/regex_iterator/char/string_01.cc:
      	New.
      	* testsuite/28_regex/iterators/regex_iterator/wchar_t/string_01.cc:
      	New.
      	* testsuite/28_regex/iterators/regex_token_iterator/char/string_01.cc:
      	New.
      	* testsuite/28_regex/iterators/regex_token_iterator/wchar_t/string_01.cc:
      	New.
      
      From-SVN: r201169
      407a0fa3
    • Paolo Carlini's avatar
      random: Add back <cstdio> include. · 3c68decc
      Paolo Carlini authored
      2013-07-23  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/std/random: Add back <cstdio> include.
      	* src/c++11/random.cc: Don't include <cstdio> here.
      
      From-SVN: r201160
      3c68decc
  12. Jul 22, 2013
  13. Jul 21, 2013
    • Tim Shen's avatar
      Partially implement regex_search. · 603c431f
      Tim Shen authored
      2013-07-21  Tim Shen  <timshen91@gmail.com>
      
      	Partially implement regex_search.
      	* include/bits/regex.h: regex_search.
      	* include/bits/regex_grep_matcher.h: _M_search_from_first.
      	* include/bits/regex_grep_matcher.tcc: Implement it.
      	* testsuite/28_regex/algorithms/regex_search/basic/string_01.cc: New.
      
      From-SVN: r201113
      603c431f
    • Jonathan Wakely's avatar
      re PR libstdc++/54352 (relaxed data race rules for ~condition_variable_any) · 3429db0f
      Jonathan Wakely authored
      	PR libstdc++/54352
      	* include/std/condition_variable (condition_variable_any): Move into
      	inline namespace _V2 and replace mutex member with shared_ptr<mutex>.
      	* src/c++11/condition_variable.cc (condition_variable_any): Move
      	definitions to ...
      	* src/c++11/compatibility-condvar.cc (condition_variable_any): Here.
      	* src/Makefile.am: Add new source file.
      	* src/Makefile.in: Regenerate.
      
      From-SVN: r201112
      3429db0f
    • Mike Stump's avatar
      Fix. · d76e725e
      Mike Stump authored
      From-SVN: r201103
      d76e725e
  14. Jul 09, 2013
    • Tim Shen's avatar
      Implement class regex_traits. · b3ebe3d0
      Tim Shen authored
      2013-07-09  Tim Shen  <timshen91@gmail.com>
      
      	Implement class regex_traits.
      	* include/bits/regex.h: Implement lookup_classname and
      	lookup_collatename; modify isctype; partially implement
      	transform_primary.
      	* testsuite/28_regex/traits/char/isctype.cc: Add more test cases.
      	* testsuite/28_regex/traits/char/lookup_classname.cc: Likewise.
      	* testsuite/28_regex/traits/char/lookup_collatename.cc: Likewise.
      	* testsuite/28_regex/traits/char/transform_primary.cc: Likewise.
      	* testsuite/28_regex/traits/wchar_t/isctype.cc: New.
      	* testsuite/28_regex/traits/wchar_t/lookup_classname.cc: New.
      	* testsuite/28_regex/traits/wchar_t/lookup_collatename.cc: New.
      	* testsuite/28_regex/traits/wchar_t/transform_primary.cc: New.
      
      From-SVN: r200818
      b3ebe3d0
  15. Jul 08, 2013
  16. Jul 05, 2013
    • Paolo Carlini's avatar
      const_iterator.cc: Tweak, avoid potential undefined behavior. · 110374e4
      Paolo Carlini authored
      2013-07-05  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* testsuite/23_containers/deque/modifiers/insert/const_iterator.cc:
      	Tweak, avoid potential undefined behavior.
      	* testsuite/23_containers/list/modifiers/insert/const_iterator.cc:
      	Likewise.
      	* testsuite/23_containers/vector/bool/modifiers/insert/
      	const_iterator.cc: Likewise.
      	* testsuite/23_containers/vector/modifiers/insert/const_iterator.cc:
      	Likewise.
      
      From-SVN: r200725
      110374e4
    • François Dumont's avatar
      hashtable_policy.h (_ReuseOrAllocNode): Use forward pattern. · b3abc9d8
      François Dumont authored
      2013-07-05  François Dumont  <fdumont@gcc.gnu.org>
      
      	* include/bits/hashtable_policy.h (_ReuseOrAllocNode): Use forward
      	pattern.
      	(_MoveReuseOrAllocNode): Remove.
      	(_Insert_base): Take a functor defining how the node is generated.
      	* include/bits/hashtable.h: Adapt.
      	(operator=(initializer_list<value_type>)): Reuse node if any.
      	* testsuite/23_containers/unordered_set/instantiation_neg.cc:
      	Adjust dg-error line number.
      	* testsuite/23_containers/unordered_set/
      	not_default_constructible_hash_neg.cc: Likewise.
      
      From-SVN: r200724
      b3abc9d8
    • Paolo Carlini's avatar
      const_iterator.cc: Tweak, avoid potential undefined behavior. · 8b30e166
      Paolo Carlini authored
      2013-07-05  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* testsuite/23_containers/deque/modifiers/insert/const_iterator.cc:
      	Tweak, avoid potential undefined behavior.
      	* testsuite/23_containers/list/modifiers/insert/const_iterator.cc:
      	Likewise.
      	* testsuite/23_containers/vector/bool/modifiers/insert/
      	const_iterator.cc: Likewise.
      	* testsuite/23_containers/vector/modifiers/insert/const_iterator.cc:
      	Likewise.
      
      From-SVN: r200703
      8b30e166
  17. Jul 04, 2013
    • Veres Lajos's avatar
      codecvt_members.cc: Fix typo. · 1d77bc54
      Veres Lajos authored
      
      2013-07-04  Veres Lajos  <vlajos@gmail.com>
      	    Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	* config/locale/generic/codecvt_members.cc: Fix typo.
      	* configure.host: Likewise.
      	* doc/html/manual/policy_data_structures_design.html: Likewise.
      	* doc/xml/manual/policy_data_structures.xml: Likewise.
      	* include/bits/hashtable.h: Likewise.
      	* include/bits/random.h: Likewise.
      	* include/profile/impl/profiler_trace.h: Likewise.
      	* testsuite/23_containers/deque/cons/2.cc: Likewise.
      	* testsuite/23_containers/deque/debug/shrink_to_fit.cc: Likewise.
      	* testsuite/ext/pb_ds/example/basic_multimap.cc: Likewise.
      	* testsuite/performance/23_containers/insert_erase/41975.cc: Likewise.
      
      Co-Authored-By: default avatarJonathan Wakely <jwakely.gcc@gmail.com>
      
      From-SVN: r200681
      1d77bc54
    • François Dumont's avatar
      Add missing ChangeLog entry. · b1eb497f
      François Dumont authored
      From-SVN: r200680
      b1eb497f
    • Ray Chason's avatar
      re PR libstdc++/57808 (operators == and != for regex_token_iterator need to be const) · b727d9c4
      Ray Chason authored
      
      2013-07-04  Ray Chason  <chasonr@newsguy.com>
      	    Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/57808
      	* include/bits/regex.h (regex_token_iterator<>::operator==,
      	regex_token_iterator<>::operator!=, regex_token_iterator<>::operator*,
      	regex_token_iterator<>::operator->): Declare const.
      
      Co-Authored-By: default avatarPaolo Carlini <paolo.carlini@oracle.com>
      
      From-SVN: r200662
      b727d9c4
Loading