From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D5D5B3858D3C; Wed, 9 Feb 2022 07:35:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D5D5B3858D3C From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/102059] Incorrect always_inline diagnostic in LTO mode with #pragma GCC target("cpu=power10") Date: Wed, 09 Feb 2022 07:35:24 +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.0 X-Bugzilla-Keywords: diagnostic, lto, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: linkw at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: linkw at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2022 07:35:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102059 --- Comment #35 from Kewen Lin --- > I don't think the r12-6219 commit qualifies for backporting. What about = the > comment#31 patch? Does it address the issue for Eigen on the branches? Got it. comment#31 patch can only address the mismatch issue on power8-fusi= on, it doesn't help htm. (FWIW, the previous posted patch https://gcc.gnu.org/pipermail/gcc-patches/2022-January/587635.html doesn't either.) For htm issue, I think we can go with the workarounds for branches like: 1) target attribute "cpu=3Dpower10,htm" for callers to pretend power10 ha= ving htm to avoid mismatch. 2) adding -mno-htm for the whole Eigen build if it doesn't use any HTM features. 3) if unfortunately it does use HTM, make it fine grain to only those inl= ined callees with target attribute "no-htm".=