summaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
authorjlquinn <jlquinn@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-06 04:08:29 +0000
committerjlquinn <jlquinn@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-06 04:08:29 +0000
commit90e70538c4812229e2e22df8ccac6a39ff0a89be (patch)
tree130cb603683e720751c285e4a0a234bd4b5af46d /gcc/gimple.c
parent90523269e2d54f9f14462f85fe17764aabc6b03c (diff)
downloadgcc-90e70538c4812229e2e22df8ccac6a39ff0a89be.tar.gz
2009-10-06 Jerry Quinn <jlquinn@optonline.net>
* gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152485 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r--gcc/gimple.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c
index af54306e54a..481daf0ed99 100644
--- a/gcc/gimple.c
+++ b/gcc/gimple.c
@@ -3767,6 +3767,7 @@ iterative_hash_gimple_type (tree type, hashval_t val,
static hashval_t
gimple_type_hash (const void *p)
{
+ const_tree t = (const_tree) p;
VEC(tree, heap) *sccstack = NULL;
struct pointer_map_t *sccstate;
struct obstack sccstate_obstack;
@@ -3783,7 +3784,7 @@ gimple_type_hash (const void *p)
next_dfs_num = 1;
sccstate = pointer_map_create ();
gcc_obstack_init (&sccstate_obstack);
- val = iterative_hash_gimple_type (CONST_CAST2 (tree, const void *, p), 0,
+ val = iterative_hash_gimple_type (CONST_CAST_TREE (t), 0,
&sccstack, sccstate, &sccstate_obstack);
VEC_free (tree, heap, sccstack);
pointer_map_destroy (sccstate);