From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1BA353858D33; Wed, 1 Mar 2023 04:27:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1BA353858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677644820; bh=dTzUFeSNxC8NLHnpMS+S0aihgmovxMjPK5kejKrbtj4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=M+Hcn+mZsyCCz8oX2tyZZcbcC1SUTzlcaZpsC1JDRIZtqP8JpZNepHslNZvgQM72P nWhZQsn9PZb9e4PNQX7Rk6C/1invXPjKR//1Kp8Pc4i8ByAYVO/jG1MQ6dY4INVExe xMQHCbEAEqYhsRToYqzHUid+0JYBN+WHingyCxAo= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108980] [13 Regression] Warning text missing the warning itself (GCC 13) Date: Wed, 01 Mar 2023 04:26:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc 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=3D108980 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Warning text missing the |[13 Regression] Warning |warning itself (GCC 13) |text missing the warning | |itself (GCC 13) --- Comment #3 from Andrew Pinski --- The logic is: if (warned || out_of_bound) { if ((out_of_bound && warn_strict_flex_arrays) && (((sam =3D=3D special_array_member::trail_0) || (sam =3D=3D special_array_member::trail_1) || (sam =3D=3D special_array_member::trail_n)) && DECL_NOT_FLEXARRAY (afield_decl))) warned =3D warning_at (location,=20 ... if (DECL_P (ref)) inform (DECL_SOURCE_LOCATION (ref), "while referencing %qD", ref); if (rec && DECL_P (rec)) inform (DECL_SOURCE_LOCATION (rec), "defined here %qD", rec); The checks before calling inform should include a check for warned . Started with r13-4748-g2a27ae32fabf85 .=