PR target/53912
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Dec 2012 09:53:08 +0000 (09:53 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Dec 2012 09:53:08 +0000 (09:53 +0000)
* print-tree.c (print_node): Cast from pointer via uintptr_t.

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

gcc/ChangeLog
gcc/print-tree.c

index 41f4116..68d3972 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-10 Kai Tietz  <ktietz@redhat.com>
+
+       PR target/53912
+       * print-tree.c (print_node): Cast from pointer via uintptr_t.
+
 2012-12-10  Jakub Jelinek  <jakub@redhat.com>
 
        * asan.c (instrument_derefs): Handle bitfield COMPONENT_REFs
index b12d1f3..67bb874 100644 (file)
@@ -255,7 +255,7 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
   /* Allow this function to be called if the table is not there.  */
   if (table)
     {
-      hash = ((unsigned long) node) % HASH_SIZE;
+      hash = ((uintptr_t) node) % HASH_SIZE;
 
       /* If node is in the table, just mention its address.  */
       for (b = table[hash]; b; b = b->next)