From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 47C7D3842428; Fri, 4 Dec 2020 06:09:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 47C7D3842428 From: "amodra at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/98125] New test case g++.dg/pr93195a.C in r11-5656 has excess errors Date: Fri, 04 Dec 2020 06:09:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amodra at gmail dot com X-Bugzilla-Status: NEW 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: bug_status 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: Fri, 04 Dec 2020 06:09:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98125 Alan Modra changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #5 from Alan Modra --- The default implementation of -fpatchable-function-entry is broken and usel= ess on powerpc64 ELFv1 and ELFv2. For ELFv1 we get .section ".opd","aw" .align 3 _Z3foov: .quad .L._Z3foov,.TOC.@tocbase,0 .previous .type _Z3foov, @function .L._Z3foov: .section __patchable_function_entries,"awo",@progbits,_Z3foov .align 3 .8byte .LPFE1 .section .text._Z3foov,"axG",@progbits,_Z3foov,comdat .LPFE1: nop So the "o" flag symbol is one in the .opd section, rather than what would be correct here, .L._Z3foov. The implementation is even more useless for ELFv2, with the nop appearing in the global entry code (so providing patch space for only some calls of the function), which results in assembler complaints about ".localentry expression is not a power of 2". I don't think there is anything wrong with the new testcase, just a lack of xfail powerpc64*-*-*.=