From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 495553858C2F; Tue, 23 Jan 2024 08:39:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 495553858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705999145; bh=y9YvjjwytFKCqtst3Uazxx9fL2JCmR83KxsTFs/mvuo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Zc9Uurcx4I+LTdv9QsiLQ+Wv1O9x+NLz8SOA+ouFMcKhaarOuMNj8WbZU/GBQwR/a ijnCFGgAs1Xq9XkvBtuhyGVxBArBjZ729VfBL95aphip0QCEaKKkOpox0F70IgFWv4 1Wj5cWWayz5WfhTWBMm6aC+uYjOCAzUYxr63bzZ0= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/107931] [12/13/14 Regression] -Og causes always_inline to fail since r12-6677-gc952126870c92cf2 Date: Tue, 23 Jan 2024 08:39:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 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=3D107931 --- Comment #26 from Jakub Jelinek --- (In reply to Richard Biener from comment #25) > Btw, I'd rather go the opposite and make the testcase at hand always inva= lid > and diagnosed which means diagnose taking the address of always-inline > declared functions and never emit an out-of-line body for them. That would need an exception at least for gnu extern inline always_inline functions, because the way they are used in glibc requires &open etc. to be valid (and= use then as fallback the out of line open). But with the exception we can still see those indirect uses optimized later into direct calls.=