Commit a67a73fd by Ian Lance Taylor Committed by Ian Lance Taylor

* diagnostic.c (bt_callback): Cast pc when calling fprintf.

From-SVN: r191766
parent 50251425
2012-09-26 Ian Lance Taylor <iant@google.com>
* diagnostic.c (bt_callback): Cast pc when calling fprintf.
2012-09-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com> 2012-09-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR tree-optimization/54674 PR tree-optimization/54674
......
...@@ -364,7 +364,7 @@ bt_callback (void *data, uintptr_t pc, const char *filename, int lineno, ...@@ -364,7 +364,7 @@ bt_callback (void *data, uintptr_t pc, const char *filename, int lineno,
} }
fprintf (stderr, "0x%lx %s\n\t%s:%d\n", fprintf (stderr, "0x%lx %s\n\t%s:%d\n",
pc, (unsigned long) pc,
function == NULL ? "???" : function, function == NULL ? "???" : function,
filename == NULL ? "???" : filename, filename == NULL ? "???" : filename,
lineno); lineno);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment