https://gcc.gnu.org/g:ba64a8e87c702788b0fdf9ecc6676f2c16b671a0
commit r17-4007-gba64a8e87c702788b0fdf9ecc6676f2c16b671a0 Author: Kael Andrew Alonzo Franco <[email protected]> Date: Mon Sep 7 19:35:52 2026 -0400 middle-end: Remove pp_double_int. pp_double_int is not used so remove it. Part of https://gcc.gnu.org/pipermail/gcc/2026-September/248863.html, removing double-int as whole since wide-int exists (fixed_wide_int). Bootstrapped and regtested on x86_64-pc-linux-gnu. gcc/ChangeLog: * tree-pretty-print.h (pp_double_int): Remove. * tree-pretty-print.cc (pp_double_int): Ditto. Signed-off-by: Kael Andrew Franco <[email protected]> Diff: --- gcc/tree-pretty-print.cc | 28 ---------------------------- gcc/tree-pretty-print.h | 1 - 2 files changed, 29 deletions(-) diff --git a/gcc/tree-pretty-print.cc b/gcc/tree-pretty-print.cc index 316945c00ede..ed96728cbc46 100644 --- a/gcc/tree-pretty-print.cc +++ b/gcc/tree-pretty-print.cc @@ -5258,34 +5258,6 @@ dump_function_header (FILE *dump_file, tree fdecl, dump_flags_t flags) fprintf (dump_file, ")\n\n"); } -/* Dump double_int D to pretty_printer PP. UNS is true - if D is unsigned and false otherwise. */ -void -pp_double_int (pretty_printer *pp, double_int d, bool uns) -{ - if (d.fits_shwi ()) - pp_wide_integer (pp, d.low); - else if (d.fits_uhwi ()) - pp_unsigned_wide_integer (pp, d.low); - else - { - unsigned HOST_WIDE_INT low = d.low; - HOST_WIDE_INT high = d.high; - if (!uns && d.is_negative ()) - { - pp_minus (pp); - high = ~high + !low; - low = -low; - } - /* Would "%x%0*x" or "%x%*0x" get zero-padding on all - systems? */ - sprintf (pp_buffer (pp)->m_digit_buffer, - HOST_WIDE_INT_PRINT_DOUBLE_HEX, - (unsigned HOST_WIDE_INT) high, low); - pp_string (pp, pp_buffer (pp)->m_digit_buffer); - } -} - #if __GNUC__ >= 10 # pragma GCC diagnostic pop #endif diff --git a/gcc/tree-pretty-print.h b/gcc/tree-pretty-print.h index 78057b115354..df0f47a57ffb 100644 --- a/gcc/tree-pretty-print.h +++ b/gcc/tree-pretty-print.h @@ -55,7 +55,6 @@ extern void pretty_print_string (pretty_printer *, const char *, size_t); extern void print_call_name (pretty_printer *, tree, dump_flags_t); extern void pp_tree_identifier (pretty_printer *, tree); extern void dump_function_header (FILE *, tree, dump_flags_t); -extern void pp_double_int (pretty_printer *pp, double_int d, bool uns); extern void dump_location (pretty_printer *pp, location_t loc, dump_flags_t = TDF_NONE);
