From 38f9cd4cacb55b6e05d2a7506b8f2796376f24dd Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 26 Oct 2003 11:17:38 +0100 Subject: [PATCH] dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT. 2003-10-26 Andreas Jaeger Zack Weinberg Andreas Tobler * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT. (output_die): Likewise. (print_die): Likewise. Co-Authored-By: Andreas Tobler Co-Authored-By: Zack Weinberg From-SVN: r72948 --- gcc/ChangeLog | 8 ++++++++ gcc/dwarf2out.c | 9 +++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8cb18118cd9..8a90bc693b6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2003-10-26 Andreas Jaeger + Zack Weinberg + Andreas Tobler + + * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT. + (output_die): Likewise. + (print_die): Likewise. + 2003-10-26 Andreas Jaeger * tree.h (dwarf2out_def_cfa, dwarf2out_args_size, diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 7688fa9089f..a99b2f650c4 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -1791,7 +1791,7 @@ output_cfi (dw_cfi_ref cfi, dw_fde_ref fde, int for_eh) if (cfi->dw_cfi_opc == DW_CFA_advance_loc) dw2_asm_output_data (1, (cfi->dw_cfi_opc | (cfi->dw_cfi_oprnd1.dw_cfi_offset & 0x3f)), - "DW_CFA_advance_loc 0x%lx", + "DW_CFA_advance_loc " HOST_WIDE_INT_PRINT_HEX, cfi->dw_cfi_oprnd1.dw_cfi_offset); else if (cfi->dw_cfi_opc == DW_CFA_offset) { @@ -5234,10 +5234,10 @@ print_die (dw_die_ref die, FILE *outfile) fprintf (outfile, "range list"); break; case dw_val_class_const: - fprintf (outfile, "%ld", AT_int (a)); + fprintf (outfile, HOST_WIDE_INT_PRINT_DEC, AT_int (a)); break; case dw_val_class_unsigned_const: - fprintf (outfile, "%lu", AT_unsigned (a)); + fprintf (outfile, HOST_WIDE_INT_PRINT_UNSIGNED, AT_unsigned (a)); break; case dw_val_class_long_long: fprintf (outfile, "constant (%lu,%lu)", @@ -6556,7 +6556,8 @@ output_die (dw_die_ref die) { char *p = strchr (ranges_section_label, '\0'); - sprintf (p, "+0x%lx", a->dw_attr_val.v.val_offset); + sprintf (p, "+" HOST_WIDE_INT_PRINT_HEX, + a->dw_attr_val.v.val_offset); dw2_asm_output_offset (DWARF_OFFSET_SIZE, ranges_section_label, "%s", name); *p = '\0'; -- 2.30.2