Commit ddd4d0e1 by Jerry Quinn Committed by Jerry Quinn

gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.

2009-10-06  Jerry Quinn  <jlquinn@optonline.net>

	* gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix
	compilation.

From-SVN: r152485
parent 25b86498
2009-10-06 Jerry Quinn <jlquinn@optonline.net>
* gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix
compilation.
2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* c.opt (Wjump-misses-init): Fix typo to enable for ObjC. * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
...@@ -3767,6 +3767,7 @@ iterative_hash_gimple_type (tree type, hashval_t val, ...@@ -3767,6 +3767,7 @@ iterative_hash_gimple_type (tree type, hashval_t val,
static hashval_t static hashval_t
gimple_type_hash (const void *p) gimple_type_hash (const void *p)
{ {
const_tree t = (const_tree) p;
VEC(tree, heap) *sccstack = NULL; VEC(tree, heap) *sccstack = NULL;
struct pointer_map_t *sccstate; struct pointer_map_t *sccstate;
struct obstack sccstate_obstack; struct obstack sccstate_obstack;
...@@ -3783,7 +3784,7 @@ gimple_type_hash (const void *p) ...@@ -3783,7 +3784,7 @@ gimple_type_hash (const void *p)
next_dfs_num = 1; next_dfs_num = 1;
sccstate = pointer_map_create (); sccstate = pointer_map_create ();
gcc_obstack_init (&sccstate_obstack); 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); &sccstack, sccstate, &sccstate_obstack);
VEC_free (tree, heap, sccstack); VEC_free (tree, heap, sccstack);
pointer_map_destroy (sccstate); pointer_map_destroy (sccstate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment