From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6731C3858C42; Fri, 19 Jan 2024 02:06:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6731C3858C42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705630004; bh=Gu9TEpQ8D8PQE//KE3N1OfiDklzwB4TsLYaox6CpV0Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GqRBMRtZXLTxk8F/ho7AeJ1616iMzbmHPDbRkCI7jl7z3W1yKqpRPR9SF1nnFpwtI ixdZclgt5mKnM6pr0KK/QTVbWzsZSSONnYEmTs3JluXyXFp6bdTd/NnCpPQntetNQt To+b0A7oCqKZTwhkddUKz7UtZyS6NWEvX/1bSmgU= From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112980] 64-bit powerpc ELFv2 does not allow nops to be generated before function global entry point Date: Fri, 19 Jan 2024 02:06:41 +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.2.0 X-Bugzilla-Keywords: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112980 --- Comment #4 from Kewen Lin --- (In reply to Naveen N Rao from comment #2) > I don't really have a preference, though I tend to agree that nops before > the local entry point aren't that useful. Even with the current approach, > not all functions have instructions at the GEP and for those, the nops are > being generated outside the function. We also won't have a separate GEP/L= EP > with pcrel, so we won't need a separate option eventually. Thanks for the input! Looking forward to the comments from the others, especially Segher, David and Peter. (In reply to Michael Matz from comment #3) > (In reply to Kewen Lin from comment #1) > >=20 > > As Segher's review comments in [2], to support "before NOPs" before glo= bal > > entry and "after NOPs" after global entry, >=20 > Just to be perfectly clear here: the "after NOPs" need to come after local > entry > (which strictly speaking is of course after the global one as well, but I= 'm > being anal :) ). Oops, good catch, I meant to type "after local entry", thanks for the correction making it perfectly clear. :)=