Commit 1a4d8851 by Andi Kleen Committed by Andi Kleen

Convert asan.c to inchash

gcc/:

2014-07-31  Andi Kleen  <ak@linux.intel.com>

	* asan.c (asan_mem_ref_hasher::hash): Convert to inchash.

From-SVN: r213396
parent f768061c
2014-07-31 Andi Kleen <ak@linux.intel.com>
* asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
2014-07-31 Andi Kleen <ak@linux.intel.com>
* Makefile.in (OBJS): Add rtlhash.o
* dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
(loc_checksum): Dito.
......
......@@ -348,9 +348,10 @@ struct asan_mem_ref_hasher
inline hashval_t
asan_mem_ref_hasher::hash (const asan_mem_ref *mem_ref)
{
hashval_t h = iterative_hash_expr (mem_ref->start, 0);
h = iterative_hash_host_wide_int (mem_ref->access_size, h);
return h;
inchash::hash hstate;
inchash::add_expr (mem_ref->start, hstate);
hstate.add_wide_int (mem_ref->access_size);
return hstate.end ();
}
/* Compare two memory references. We accept the length of either
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment