From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 245203858D28; Sun, 5 Mar 2023 20:07:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 245203858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678046835; bh=ohEj3njRe4qrLpChnTjgDtpZadgIu9eTQCN8hZ2099o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=slvzZM8YGEBGeHtvUCtvGc5QwXo1ey5dtxOxdj7YgFI+8H8D9O5mMNoSt6l1x1RQW fuQryaYawtG2FvbTw5i0NxSX5rgtZbJajNCR5wK1GvBtiVKkvYrHjHnfyFdk/DPlml PTOFNeCBohVaMTpRgiqCamWl33Fut4kIyOhnVznQ= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109007] building for POWER8 leaks into POWER9 ISA with g++ 11.3 (cross-compiler on x86_64 host) Date: Sun, 05 Mar 2023 20:07:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.3.0 X-Bugzilla-Keywords: wrong-code 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: --- 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=3D109007 --- Comment #16 from Jakub Jelinek --- (In reply to Segher Boessenkool from comment #15) > (In reply to bugreporter66 from comment #14) > > I should be able to workaround that by emulating all LE targets on POWE= R9, > > with a comment that building for POWER8 natively on target should work = too. >=20 > If you want to default to Power9 but still support Power8 (on builds that= use > -mcpu=3Dpower8), you need to set up appropriate multilibs. If you want t= hat, > please do a feature request for that? As a new PR, not hidden inside this > one please :-) Or just make sure the libraries are still built with -mcpu=3Dpower8 even wh= en the compiler defaults to something else. That said, neither multilibs nor just making sure libraries are built with -mcpu=3Dpower8 can help with libraries outside of gcc (unless they are buil= t as multilibs or with the extra flags). I'd say though that if you want to use distro packages of a distro that switched to power9, then just live with it and don't try to run it on power= 8 or power8 emulation, or switch to a different distro which still supports power8 (many still do)= , or build gcc and all the needed libraries yourself.=