From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 830D43858C78; Tue, 27 Feb 2024 22:19:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 830D43858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709072389; bh=Wj6XudnCSzhcCF/YvSi2TaSxrCas6FzxiG5fQo+i8Ho=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OYyS6zd/adDSNxBE9u08+zR7rv0r2nsAvUMvK9H6vn/OrCGCvMIFYfE1qC2HW1nhh xgyM41/iIjEeojzQDBO/5lpNSowcYUBB2C9/ErOHnMFnmH4RevVWBSDWVkh5eJP34+ CkG2JUgxMAyKOUtX+YklJufTBHROvVChbYhRnlCk= From: "cvs-commit at gcc dot 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110483 --- Comment #3 from GCC Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:939439a90f234f9e70d30240bf5c227eebe2b43f commit r14-9199-g939439a90f234f9e70d30240bf5c227eebe2b43f Author: David Malcolm 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 =C3=A2void ana::string_literal_spatial_item::add_column_for_byte(text_art::table&, con= st ana::bit_to_table_map&, text_art::style_manager&, ana::byte_offset_t, ana::byte_offset_t, int, int) const=C3=A2: ../../src/gcc/analyzer/access-diagram.cc:1909:40: warning: format =C3= =A2%li=C3=A2 expects argument of type =C3=A2long int=C3=A2, but argument 3 has type =C3= =A2long long unsigned int=C3=A2 [-Wformat=3D] 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 =