OSDN Git Service

2009-10-06 Jerry Quinn <jlquinn@optonline.net>
authorjlquinn <jlquinn@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Oct 2009 04:08:29 +0000 (04:08 +0000)
committerjlquinn <jlquinn@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Oct 2009 04:08:29 +0000 (04:08 +0000)
* 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

gcc/ChangeLog
gcc/gimple.c

index 1711cbd..4dd138f 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
index af54306..481daf0 100644 (file)
@@ -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);