re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for...
authorKai Tietz <ktietz@redhat.com>
Mon, 10 Dec 2012 09:53:08 +0000 (10:53 +0100)
committerKai Tietz <ktietz@gcc.gnu.org>
Mon, 10 Dec 2012 09:53:08 +0000 (10:53 +0100)
PR target/53912
* print-tree.c (print_node): Cast from pointer via uintptr_t.

From-SVN: r194348

gcc/ChangeLog
gcc/print-tree.c

index 41f4116c05bc39a8de9296c8547ca2b2860f2107..68d3972ba794fdbc5fc505c2f4724ac12e69d635 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 b12d1f38637f87d85b7f84d2561f815b34a75f87..67bb8746f9fd4d72b5e4cb20cbc08196afa4e4ce 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)