diff options
author | Jakub Jelinek <jakub@redhat.com> | 2024-02-12 18:52:01 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2024-02-12 18:52:01 +0100 |
commit | f3306a9455f4d2556ba941e5783c94d4bede3b58 (patch) | |
tree | 77d05a5e628b18fdab9eb32c5eee654f9a2f1ad8 /gcc | |
parent | 76fb83559dc85d9a6de92c0505cf5c4dfa698430 (diff) | |
download | gcc-f3306a9455f4d2556ba941e5783c94d4bede3b58.zip gcc-f3306a9455f4d2556ba941e5783c94d4bede3b58.tar.gz gcc-f3306a9455f4d2556ba941e5783c94d4bede3b58.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/gengtype.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/gengtype.cc b/gcc/gengtype.cc index b1db727..87f8090 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) |