OSDN Git Service

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@194349 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/print-tree.c

index e82853d..caa441c 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-07  Uros Bizjak  <ubizjak@gmail.com>
 
        Backport from mainline
index 7fb71d0..e96c3a2 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)