summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-18 23:05:50 +0000
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-18 23:05:50 +0000
commitde064be970f5146ba9366d41733609a4fb2b11c6 (patch)
tree8ae71f8ebd710043f6c88db05c9fe55db40aecfc /gcc/dwarf2out.c
parentc3dd0e8588136d0b1ce121dcebf82701189af760 (diff)
downloadgcc-de064be970f5146ba9366d41733609a4fb2b11c6.tar.gz
Index: gcc/java/ChangeLog
2007-05-18 Geoffrey Keating <geoffk@apple.com> * jcf-dump.c (HANDLE_MAGIC): Use 'unsigned long' for %lx. (print_constant): Likewise. Index: gcc/ChangeLog 2007-05-18 Geoffrey Keating <geoffk@apple.com> * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'. (output_die): Use 'unsigned long' with %x. * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT. * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx. Index: gcc/cp/ChangeLog 2007-05-18 Geoffrey Keating <geoffk@apple.com> * mangle.c (write_real_cst): Use 'unsigned long' for %lx. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124839 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 8c9d028d2f6..ae540215ec4 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -5768,11 +5768,11 @@ print_die (dw_die_ref die, FILE *outfile)
unsigned ix;
print_spaces (outfile);
- fprintf (outfile, "DIE %4lu: %s\n",
+ fprintf (outfile, "DIE %4ld: %s\n",
die->die_offset, dwarf_tag_name (die->die_tag));
print_spaces (outfile);
fprintf (outfile, " abbrev id: %lu", die->die_abbrev);
- fprintf (outfile, " offset: %lu\n", die->die_offset);
+ fprintf (outfile, " offset: %ld\n", die->die_offset);
for (ix = 0; VEC_iterate (dw_attr_node, die->die_attr, ix, a); ix++)
{
@@ -5820,7 +5820,7 @@ print_die (dw_die_ref die, FILE *outfile)
if (AT_ref (a)->die_symbol)
fprintf (outfile, "die -> label: %s", AT_ref (a)->die_symbol);
else
- fprintf (outfile, "die -> %lu", AT_ref (a)->die_offset);
+ fprintf (outfile, "die -> %ld", AT_ref (a)->die_offset);
}
else
fprintf (outfile, "die -> <null>");
@@ -7091,7 +7091,8 @@ output_die (dw_die_ref die)
output_die_symbol (die);
dw2_asm_output_data_uleb128 (die->die_abbrev, "(DIE (0x%lx) %s)",
- die->die_offset, dwarf_tag_name (die->die_tag));
+ (unsigned long)die->die_offset,
+ dwarf_tag_name (die->die_tag));
for (ix = 0; VEC_iterate (dw_attr_node, die->die_attr, ix, a); ix++)
{
@@ -7273,7 +7274,7 @@ output_die (dw_die_ref die)
/* Add null byte to terminate sibling list. */
if (die->die_child != NULL)
dw2_asm_output_data (1, 0, "end of children of DIE 0x%lx",
- die->die_offset);
+ (unsigned long) die->die_offset);
}
/* Output the compilation unit that appears at the beginning of the