1. 17 Jun, 2019 7 commits
    • Simplify node ownership in _Hashtable members · b0c849fa
      Introduce an RAII type to manage nodes in unordered containers while
      they are being inserted. If the caller always owns a node until it is
      inserted, then the insertion functions don't need to deallocate on
      failure. This allows a FIXME in the node re-insertion API to be removed.
      
      Also change extract(const key_type&) to not call extract(const_iterator)
      anymore.  This avoids looping through the bucket nodes again to find the
      node before the one being extracted.
      
      2019-06-17  François Dumont  <fdumont@gcc.gnu.org>
      	    Jonathan Wakely  <jwakely@redhat.com>
      
      	* include/bits/hashtable.h (struct _Hashtable::_Scoped_node): New type.
      	(_Hashtable::_M_insert_unique_node): Add key_type parameter. Don't
      	deallocate node if insertion fails.
      	(_Hashtable::_M_insert_multi_node): Likewise.
      	(_Hashtable::_M_reinsert_node): Pass additional key argument.
      	(_Hashtable::_M_reinsert_node_multi): Likewise. Remove FIXME.
      	(_Hashtable::_M_extract_node(size_t, __node_base*)): New function.
      	(_Hashtable::extract(const_iterator)): Use _M_extract_node.
      	(_Hashtable::extract(const _Key&)): Likewise.
      	(_Hashtable::_M_merge_unique): Pass additional key argument.
      	(_Hashtable::_M_emplace<Args>(true_type, Args&&...)): Likewise. Use
      	_Scoped_node.
      	(_Hashtable::_M_insert): Likewise.
      	* include/bits/hashtable_policy.h (_Map_base::operator[]): Likewise.
      	(_Hashtable_alloc): Add comments to functions with misleading names.
      
      Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
      
      From-SVN: r272381
      François Dumont committed
    • tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate access path on BIT_FIELD_REFs. · e67ddda6
      	* tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
      	access path on BIT_FIELD_REFs.
      
      From-SVN: r272380
      Jan Hubicka committed
    • Remove dead code (PR ipa/90874). · c98d845f
      2019-06-17  Martin Liska  <mliska@suse.cz>
      
      	PR ipa/90874
      	* ipa-utils.h (odr_type_p): Remove dead code.
      
      From-SVN: r272378
      Martin Liska committed
    • Remove support for alternative Solaris 11.4 ld -V output · 7cd4af82
      	* configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
      	alternative Solaris 11.4 format.
      	* configure: Regenerate.
      
      From-SVN: r272377
      Rainer Orth committed
    • Fix tests that fail without PCH · 9a9c7a62
      The recent change to stop transitively including <string> broke some
      tests, but only when the library is configured without PCH, because
      otherwise the <string> header still gets included via the precompiled
      <bits/stdc++.h> header.
      
      	* testsuite/20_util/bad_function_call/what.cc: Include <string> header
      	for std::string.
      	* testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Likewise.
      	* testsuite/20_util/tuple/cons/allocator_with_any.cc: Include <memory>
      	header for std::allocator.
      	* testsuite/23_containers/array/tuple_interface/tuple_element.cc: Add
      	using-declaration for std::size_t.
      	* testsuite/23_containers/array/tuple_interface/tuple_size.cc:
      	Likewise.
      	* testsuite/23_containers/deque/cons/55977.cc: Include <istream> for
      	std::istream.
      	* testsuite/23_containers/vector/cons/55977.cc: Likewise.
      	* testsuite/experimental/map/erasure.cc: Include <string> for
      	std::string.
      	* testsuite/experimental/unordered_map/erasure.cc: Likewise.
      
      From-SVN: r272376
      Jonathan Wakely committed
    • re PR ada/80590 (non-bootstrap build failure of Ada runtime) · 61efaded
      PR ada/80590
      
      	* exp_ch9.adb (Expand_N_Delay_Relative_Statement): Swap the two
      	conditions to avoid a unnecessary exception propagation in the default
      	case.
      
      From-SVN: r272372
      Arnaud Charlet committed
    • Daily bump. · 21e42f7b
      From-SVN: r272370
      GCC Administrator committed
  2. 16 Jun, 2019 27 commits
  3. 15 Jun, 2019 6 commits