This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Patch PR debug/41065


On 09/01/2009 05:22 PM, Dodji Seketeli wrote:
+hashval_t
+types_used_by_vars_do_hash (const void *x)
+{
+  return htab_hash_pointer
+	  (((const struct types_used_by_vars_entry*)x)->type);
+}
+
+/*Equality function of the types_used_by_vars_entry hash table.  */
+
+int
+types_used_by_vars_eq (const void *x1, const void *x2)
+{
+  return htab_eq_pointer
+	      (((const struct types_used_by_vars_entry *)x1)->type,
+		(const union tree_node*) x2);

Why don't these hash/compare the var_decl?


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]