From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3FFB43858D1E; Wed, 17 May 2023 18:21:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3FFB43858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684347695; bh=kF6VjPN8SD3z3Gq9OA+OT/jnYjAtpCyTjaIPyBRRzOw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=isQMCCPkzBPRb3DBzh24BGvmDEeS1btwLxaQh/SrAu6zqa4SZJStHXrcBTqA3GML2 /Jy5PNtdY6vpWYsaEIe7+ppKmDnD6NtvUKJOGuxZTI62Y4sqgJxshvtlQXdjEs9MAu YgaInqK+GZHwqGKKnhtmT/5OY1oFZQrlIMB919Uc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0cmVlLW9wdGltaXphdGlvbi8xMDY0MDldIEdDQyB3aXRo?= =?UTF-8?B?IExUTzogV2FybmluZzogYXJndW1lbnQgMSB2YWx1ZSDigJgxOC4uLjYxNQ==?= =?UTF-8?B?4oCZIChTSVpFX01BWCkgZXhjZWVkcyBtYXhpbXVtIG9iamVjdCBzaXpl?= Date: Wed, 17 May 2023 18:21:34 +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: 11.1.0 X-Bugzilla-Keywords: diagnostic, lto X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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: see_also everconfirmed keywords cf_reconfirmed_on bug_status 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=3D106409 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D80922 Ever confirmed|0 |1 Keywords| |lto Last reconfirmed|2022-07-22 00:00:00 |2023-05-17 Status|UNCONFIRMED |NEW --- Comment #4 from Andrew Pinski --- I suspect the issue is for LTO we don't stream out the ignore part . Anyways confirmed, you can reproduce it with the following single file testcase: ``` typedef struct st_mysql_bind { int t; int t1; int t2; int t3; } bb; [[gnu::noipa]] void *f(unsigned long paramCount) { if (paramCount =3D=3D 0) return nullptr; return new bb[paramCount](); } int main(void) { f(100); } ``` Compile it with `-flto -W -Wall -O2` and see the warning.=