public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-8939] gengtype: Use HOST_SIZE_T_PRINT_UNSIGNED in another spot Date: Mon, 12 Feb 2024 17:52:42 +0000 (GMT) [thread overview] Message-ID: <20240212175242.BFB243858C66@sourceware.org> (raw) https://gcc.gnu.org/g:f3306a9455f4d2556ba941e5783c94d4bede3b58 commit r14-8939-gf3306a9455f4d2556ba941e5783c94d4bede3b58 Author: Jakub Jelinek <jakub@redhat.com> Date: Mon Feb 12 18:52:01 2024 +0100 gengtype: Use HOST_SIZE_T_PRINT_UNSIGNED in another spot This patch depends on the libiberty/vprintf-support.c change. 2024-02-12 Jakub Jelinek <jakub@redhat.com> * gengtype.cc (adjust_field_rtx_def): Use HOST_SIZE_T_PRINT_UNSIGNED and cast to fmt_size_t instead of %lu and cast to unsigned long. Diff: --- gcc/gengtype.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/gengtype.cc b/gcc/gengtype.cc index b1db727b9581..87f8090544c1 100644 --- a/gcc/gengtype.cc +++ b/gcc/gengtype.cc @@ -1344,8 +1344,10 @@ adjust_field_rtx_def (type_p t, options_p ARG_UNUSED (opt)) } subfields = create_field (subfields, t, - xasprintf (".fld[%lu].%s", - (unsigned long) aindex, + xasprintf (".fld[" + HOST_SIZE_T_PRINT_UNSIGNED + "].%s", + (fmt_size_t) aindex, subname)); subfields->opt = nodot; if (t == note_union_tp)
reply other threads:[~2024-02-12 17:52 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240212175242.BFB243858C66@sourceware.org \ --to=jakub@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).