public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/110483] [14 Regression] Several gcc.dg/analyzer/out-of-bounds-diagram-*.c tests FAIL Date: Tue, 27 Feb 2024 22:19:48 +0000 [thread overview] Message-ID: <bug-110483-4-78CcSLFsQP@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-110483-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110483 --- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by David Malcolm <dmalcolm@gcc.gnu.org>: https://gcc.gnu.org/g:939439a90f234f9e70d30240bf5c227eebe2b43f commit r14-9199-g939439a90f234f9e70d30240bf5c227eebe2b43f Author: David Malcolm <dmalcolm@redhat.com> Date: Tue Feb 27 14:49:42 2024 -0500 analyzer: use correct format code for string literal indices [PR110483,PR111802] On e.g. gcc211 the use of "%li" with unsigned HOST_WIDE_INT led to this warning: ../../src/gcc/analyzer/access-diagram.cc: In member function âvoid ana::string_literal_spatial_item::add_column_for_byte(text_art::table&, const ana::bit_to_table_map&, text_art::style_manager&, ana::byte_offset_t, ana::byte_offset_t, int, int) constâ: ../../src/gcc/analyzer/access-diagram.cc:1909:40: warning: format â%liâ expects argument of type âlong intâ, but argument 3 has type âlong long unsigned intâ [-Wformat=] byte_idx_within_string.ulow ())); ^ and to all values being erroneously printed as "0". Fixed thusly. gcc/analyzer/ChangeLog: PR analyzer/110483 PR analyzer/111802 * access-diagram.cc (string_literal_spatial_item::add_column_for_byte): Use %wu for printing unsigned HOST_WIDE_INT. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
next prev parent reply other threads:[~2024-02-27 22:19 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-06-29 11:09 [Bug analyzer/110483] New: " ro at gcc dot gnu.org 2023-06-29 11:10 ` [Bug analyzer/110483] " ro at gcc dot gnu.org 2023-06-29 20:22 ` dmalcolm at gcc dot gnu.org 2023-06-30 12:59 ` ro at CeBiTec dot Uni-Bielefeld.DE 2024-02-27 22:19 ` cvs-commit at gcc dot gnu.org [this message] 2024-02-27 22:29 ` [Bug analyzer/110483] [14 Regression] " dmalcolm at gcc dot gnu.org 2024-02-29 10:30 ` ro at gcc dot gnu.org 2024-02-29 16:08 ` dmalcolm at gcc dot gnu.org 2024-02-29 20:37 ` ro at CeBiTec dot Uni-Bielefeld.DE 2024-05-07 7:40 ` [Bug analyzer/110483] [14/15 " rguenth at gcc dot gnu.org
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=bug-110483-4-78CcSLFsQP@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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).