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
This commit is contained in:
Andi Kleen 2014-08-01 02:52:08 +00:00 committed by Andi Kleen
parent f768061c4c
commit 1a4d885106
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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