re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for...
authorKai Tietz <ktietz@redhat.com>
Mon, 3 Dec 2012 07:02:17 +0000 (08:02 +0100)
committerKai Tietz <ktietz@gcc.gnu.org>
Mon, 3 Dec 2012 07:02:17 +0000 (08:02 +0100)
PR target/53912
* tree-dump.c (dump_pointer): Print pointer via HOST_WIDE_INT_PRINT.

From-SVN: r194070

gcc/ChangeLog
gcc/tree-dump.c

index bcb7705a66b79acca75ba424b1f7120cd0384383..e3590efcd00db3c917b8347e5d7d85616a877898 100644 (file)
@@ -1,5 +1,8 @@
 2012-12-03 Kai Tietz  <ktietz@redhat.com>
 
+       PR target/53912
+       * tree-dump.c (dump_pointer): Print pointer via HOST_WIDE_INT_PRINT.
+
        PR target/53912
        * pointer-set.c (hash1): Cast from pointer via uintptr_t.
 
index f06ff68f5dac3e3cafc2c595dc5e0de793c30053..3bf153a06d5b3fc446f157b55c287e610a514a58 100644 (file)
@@ -177,7 +177,8 @@ void
 dump_pointer (dump_info_p di, const char *field, void *ptr)
 {
   dump_maybe_newline (di);
-  fprintf (di->stream, "%-4s: %-8lx ", field, (unsigned long) ptr);
+  fprintf (di->stream, "%-4s: %-8" HOST_WIDE_INT_PRINT "x ", field,
+          (unsigned HOST_WIDE_INT) (uintptr_t) ptr);
   di->column += 15;
 }