https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80619
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> --- No, the bug is still there. This patch fixes it without braking any of the format.exp tests. diff --git a/gcc/c-family/c-format.c b/gcc/c-family/c-format.c index 6363fa4f686..1fa551957d9 100644 --- a/gcc/c-family/c-format.c +++ b/gcc/c-family/c-format.c @@ -497,7 +497,7 @@ static const format_length_info printf_length_specs[] = static const format_length_info asm_fprintf_length_specs[] = { { "l", FMT_LEN_l, STD_C89, "ll", FMT_LEN_ll, STD_C89, 0 }, - { "w", FMT_LEN_none, STD_C89, NO_FMT, 0 }, + { "w", FMT_LEN_w, STD_C89, NO_FMT, 0 }, { NO_FMT, NO_FMT, 0 } }; @@ -505,7 +505,7 @@ static const format_length_info asm_fprintf_length_specs[] = static const format_length_info gcc_diag_length_specs[] = { { "l", FMT_LEN_l, STD_C89, "ll", FMT_LEN_ll, STD_C89, 0 }, - { "w", FMT_LEN_none, STD_C89, NO_FMT, 0 }, + { "w", FMT_LEN_w, STD_C89, NO_FMT, 0 }, { NO_FMT, NO_FMT, 0 } }; diff --git a/gcc/c-family/c-format.h b/gcc/c-family/c-format.h index 972ba46f109..6aa68dfe883 100644 --- a/gcc/c-family/c-format.h +++ b/gcc/c-family/c-format.h @@ -36,6 +36,7 @@ enum format_lengths FMT_LEN_H, FMT_LEN_D, FMT_LEN_DD, + FMT_LEN_w, /* GCC's HOST_WIDE_INT. */ FMT_LEN_MAX };