From: Richard Sandiford Date: Thu, 25 Jun 2015 17:07:16 +0000 (+0000) Subject: hash-traits.h (typed_noop_remove): Don't require a pointer type. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc17926acd3037f77501798862b70b5b194002eb;p=gcc.git hash-traits.h (typed_noop_remove): Don't require a pointer type. gcc/ * hash-traits.h (typed_noop_remove): Don't require a pointer type. From-SVN: r224963 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3a7e1b052ab..5bd35bd5272 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-06-25 Richard Sandiford + + * hash-traits.h (typed_noop_remove): Don't require a pointer type. + 2015-06-25 Richard Sandiford * hash-table.h (has_is_deleted, is_deleted_helper): Delete. diff --git a/gcc/hash-traits.h b/gcc/hash-traits.h index 5fd43f1f54f..c8314e51e45 100644 --- a/gcc/hash-traits.h +++ b/gcc/hash-traits.h @@ -44,7 +44,7 @@ typed_free_remove ::remove (Type *p) template struct typed_noop_remove { - static inline void remove (Type *p); + static inline void remove (Type &); }; @@ -52,7 +52,7 @@ struct typed_noop_remove template inline void -typed_noop_remove ::remove (Type *p ATTRIBUTE_UNUSED) +typed_noop_remove ::remove (Type &) { } @@ -169,7 +169,7 @@ struct ggc_cache_remove : ggc_remove is deleted. */ template -struct nofree_ptr_hash : pointer_hash , typed_noop_remove {}; +struct nofree_ptr_hash : pointer_hash , typed_noop_remove {}; /* Traits for pointer elements that should be freed via free() when an element is deleted. */