summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-21 15:02:30 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-21 15:02:30 +0000
commit8824bd284e96c646d1933cd45bad0103a73eea0d (patch)
tree46b40153746b80709661cb3998bd61282bdde0a0 /gcc
parent6b5eba3069bfaf87535fcf2d75a566fc4d038ff3 (diff)
downloadgcc-8824bd284e96c646d1933cd45bad0103a73eea0d.tar.gz
* tree-ssa-threadupdate.c (redirection_data_hash): Use the
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-ssa-threadupdate.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7601d20309d..b4f0c52320f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c
index 8d205fdf384..7d2788d6ae3 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