diff mbox

[tree-dump.c] : 7 of 7 Fix of PR target/53912 bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

Message ID CAEwic4a_EiCirOh_JB7QO-XBPoaJibWof8uP7QCAvsr62Tw1KQ@mail.gmail.com
State New
Headers show

Commit Message

Kai Tietz Nov. 29, 2012, 12:13 p.m. UTC
Hello,

this trivial patch fixes a bootstrap issue on LLP64 hosts.

ChangeLog

2012-11-29 Kai Tietz

	PR target/53912
	* tree-dump.c (dump_pointer): Cast from pointer via intptr_t.

Tested for i686-w64-mingw32, x86_64-w64-mingw32, and
x86_64-unknown-gnu-linux. Ok for apply?

Regards,
Kai
diff mbox

Patch

Index: tree-dump.c
===================================================================
--- tree-dump.c (Revision 193925)
+++ tree-dump.c (Arbeitskopie)
@@ -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: %-8lx ", field,
+          (unsigned long) (uintptr_t) ptr);
   di->column += 15;
 }