mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-22 21:51:36 +08:00
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:
parent
f768061c4c
commit
1a4d885106
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user