hash-table.h (remove_elt_with_hash): Return if slot is NULL rather than if is_empty...
authorJason Merrill <jason@redhat.com>
Thu, 14 Mar 2019 22:47:01 +0000 (18:47 -0400)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 14 Mar 2019 22:47:01 +0000 (23:47 +0100)
commit62de703f1990d2c4dd7ee0c41bfa886b5c589793
tree2a29bb29ec24c6fcd36a8c7374df0da26cd7134b
parent12fb7712a8a20fce6f3dac80251e67251c01c209
hash-table.h (remove_elt_with_hash): Return if slot is NULL rather than if is_empty (*slot).

* hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
than if is_empty (*slot).
* hash-set-tests.c (test_set_of_strings): Add tests for addition of
existing elt and for elt removal.
* hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
of already removed elt.

* hashtab.c (htab_remove_elt_with_hash): Return if slot is NULL rather
than if *slot is HTAB_EMPTY_ENTRY.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r269695
gcc/ChangeLog
gcc/hash-map-tests.c
gcc/hash-set-tests.c
gcc/hash-table.h
libiberty/ChangeLog
libiberty/hashtab.c