From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8BC473858D38; Sun, 5 Mar 2023 21:40:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8BC473858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678052449; bh=CCRfc0E5Hx9yPIvDpBAZS2SBxIbpJ2TTaiRkmTuqPmY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=osZV2R+4bttuYAbDok/tCnKvE8IlZjFo5sMp1JzFAtNpady8UgbTlzCDh3kgfgqFr T1GQICnb4jd3S+EAmTLpx6p8XjtApv1h/hxJgG7WcgISW/KgKM21xc4ZIYz9dnRG3R QZX34fipeMiSaPIaPR/uxIFiE1WlXjaD3w7qEiB0= From: "segher 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 21:40:49 +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: segher 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 #17 from Segher Boessenkool --- (In reply to Jakub Jelinek from comment #16) > Or just make sure the libraries are still built with -mcpu=3Dpower8 even = when > the compiler defaults to something else. That doesn't scale. > That said, neither multilibs nor just making sure libraries are built with > -mcpu=3Dpower8 can help with libraries outside of gcc (unless they are bu= ilt > as multilibs or with the extra flags). Sure. But this bug is about that a compiler built --with-cpu=3DX can not b= uild anything that can run on any older CPU (or does not have some feature that X has, more generally). This is a problem that we already do have a solution for, but something we have disabled in the powerpc64le-linux subtarget unfortunately. > or build gcc and all the needed libraries yourself. Yup. But it should not be necessary to build a different GCC.=