diff options
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/tree-dump.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bcb7705..e3590ef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,9 @@ 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. 2012-12-02 Marek Polacek <polacek@redhat.com> diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c index f06ff68..3bf153a 100644 --- a/gcc/tree-dump.c +++ b/gcc/tree-dump.c @@ -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; } |