On Thu, Jul 23, 2026 at 12:06 PM John David Anglin <[email protected]> wrote: > > Tested on hppa64-hp-hpux11.11 with no regressions. > > Okay?
Ok. > > Dave > --- > > Use HOST_SIZE_T_PRINT_UNSIGNED instead of %zu format string > > Not all hosts support the "z" format length modifier. Noticed > by inspection. > > 2026-07-23 John David Anglin <[email protected]> > > gcc/ChangeLog: > > * crc-verification.cc (sb_match): Use HOST_SIZE_T_PRINT_UNSIGNED > instead of "%zu". > (lfsr_and_crc_bits_match): Likewise. > > diff --git a/gcc/crc-verification.cc b/gcc/crc-verification.cc > index e15ac0f3050..ead4b81365c 100644 > --- a/gcc/crc-verification.cc > +++ b/gcc/crc-verification.cc > @@ -1026,7 +1026,8 @@ sb_match (const value *lfsr, const value *crc_value, > size_t sb_index, > else if (sb_index == 0) > { > if (dump_file && (dump_flags & TDF_DETAILS)) > - fprintf (dump_file, "Checking %zu bit.\n", it_end); > + fprintf (dump_file, "Checking " HOST_SIZE_T_PRINT_UNSIGNED " bit.\n", > + (fmt_size_t) it_end); > > if (!given_sb_match ((*crc_value)[it_end], (*lfsr)[it_end], value)) > return false; > @@ -1055,7 +1056,8 @@ lfsr_and_crc_bits_match (const value *lfsr, const value > *crc_state, > for (; i < it_end; i++) > { > if (dump_file && (dump_flags & TDF_DETAILS)) > - fprintf (dump_file, "Checking %zu bit.\n", i); > + fprintf (dump_file, "Checking " HOST_SIZE_T_PRINT_UNSIGNED " bit.\n", > + (fmt_size_t) i); > > /* Check the case when in lfsr we have LFSR (i)^LFSR (SBi), > where 0<i<LFSR_size and SBi is the index of MSB/LSB (LFSR_size-1/0).
