From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D9ACB3858C50; Tue, 28 Feb 2023 02:57:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D9ACB3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677553061; bh=9TtM6j3Nrgh09tml19yQ2jh0F9JTnhwh3q3hwWBZtoY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Dx+n2J7tKcOkmpCTXdWApCfphGLzBQwv5x3qcXiaHKHfj8a9ElnjwzTGPazKY4zzl XekKTHcv+hVOUg6LBtdNLk2vJ4k2zW9NLmgdD6Ek9vuSRAOjyCn2m+2qZwv27+UFM+ eWeM1fAoA5lxYVBaIL5S3U6SD7tX2M6HsAolSiGU= From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108315] -mcpu=power10 changes ABI Date: Tue, 28 Feb 2023 02:57:40 +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: 13.0 X-Bugzilla-Keywords: ABI, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: bergner at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: cc 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=3D108315 Peter Bergner changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amodra at gcc dot gnu.org --- Comment #1 from Peter Bergner --- CCing Alan, since he probably knows best how this all works, but yes, -mcpu-power10 changes the ABI, namely it adds pcrel support which is an ABI extension, where the function compiled with -mcpu=3Dpower10 doesn't use r2 = to access its GOT, but uses pcrel code instead. I think copying over a p10 compiled asm or obj file to a p9 system and them linking there with a non-p= 10 aware compiler/binutils seems to be a user error on my part. Just because = the -mcpu=3Dpower10 compiled file doesn't use any p10 instructions doesn't mean= it's safe to use on a pre-p10 system. I'll let Alan correct me if I'm wrong, but this seems like user error to me= .=