From: Jeff Law Date: Sun, 21 Nov 2004 15:02:30 +0000 (-0700) Subject: tree-ssa-threadupdate.c (redirection_data_hash): Use the index of the destination... X-Git-Tag: releases/gcc-4.0.0~2907 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db02564e0a85c02865edf7db08d9fc343aa6b375;p=thirdparty%2Fgcc.git tree-ssa-threadupdate.c (redirection_data_hash): Use the index of the destination block for the hash value rather than hashing a... * tree-ssa-threadupdate.c (redirection_data_hash): Use the index of the destination block for the hash value rather than hashing a pointer. From-SVN: r90980 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7601d20309d5..b4f0c52320f0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-11-21 Jeff Law + + * tree-ssa-threadupdate.c (redirection_data_hash): Use the + index of the destination block for the hash value rather than + hashing a pointer. + 2004-11-20 Joseph S. Myers * c-typeck.c (build_array_ref): Don't check for index == 0. Make diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c index 8d205fdf3844..7d2788d6ae3a 100644 --- a/gcc/tree-ssa-threadupdate.c +++ b/gcc/tree-ssa-threadupdate.c @@ -203,7 +203,7 @@ static hashval_t redirection_data_hash (const void *p) { edge e = ((struct redirection_data *)p)->outgoing_edge; - return htab_hash_pointer (e); + return e->dest->index; } static int