OSDN Git Service

* tree-ssa-threadupdate.c (redirection_data_hash): Use the
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Nov 2004 15:02:30 +0000 (15:02 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Nov 2004 15:02:30 +0000 (15:02 +0000)
        index of the destination block for the hash value rather than
        hashing a pointer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90980 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssa-threadupdate.c

index 7601d20..b4f0c52 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-21  Jeff Law  <law@redhat.com>
+
+       * 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  <joseph@codesourcery.com>
 
        * c-typeck.c (build_array_ref): Don't check for index == 0.  Make
index 8d205fd..7d2788d 100644 (file)
@@ -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