public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "linkw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/99888] Add powerpc ELFv2 support for -fpatchable-function-entry* Date: Wed, 03 Aug 2022 02:53:33 +0000 [thread overview] Message-ID: <bug-99888-4-8AHdGhE3kM@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-99888-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99888 Kewen Lin <linkw at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 CC| |linkw at gcc dot gnu.org Last reconfirmed| |2022-08-03 Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gnu.org --- Comment #1 from Kewen Lin <linkw at gcc dot gnu.org> --- cat test.c extern int a; int foo (int b){ return a + b; } on ppc64le, with option "-mcpu=power9 -fpatchable-function-entry=5,3", the generated assembly looks like: .LPFE1: nop nop nop .type foo, @function foo: nop nop .LFB0: .cfi_startproc .LCF0: 0: addis 2,12,.TOC.-.LCF0@ha addi 2,2,.TOC.-.LCF0@l .localentry foo,.-foo std 31,-8(1) Jakub's #c0 noted that the "after" nops should be placed after local entry, but there seem two choices to put the "before" nops, such as: 1) 0: addis 2,12,.TOC.-.LCF0@ha addi 2,2,.TOC.-.LCF0@l nop nop nop .localentry foo,.-foo nop nop std 31,-8(1) 2) 0: nop nop nop addis 2,12,.TOC.-.LCF0@ha addi 2,2,.TOC.-.LCF0@l .localentry foo,.-foo nop nop std 31,-8(1) For either of them, the "before" nops only take effects when it's entered from global entry, both are counted as five insns in global entry area, there is no differences from these two perspectives. I'd like to go with 1) if no objections.
next prev parent reply other threads:[~2022-08-03 2:53 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-04-03 8:13 [Bug target/99888] New: " jakub at gcc dot gnu.org 2021-04-03 8:16 ` [Bug target/99888] " jakub at gcc dot gnu.org 2022-08-03 2:53 ` linkw at gcc dot gnu.org [this message] 2022-08-03 9:50 ` linkw at gcc dot gnu.org 2022-08-03 18:40 ` segher at gcc dot gnu.org 2022-08-04 8:20 ` linkw at gcc dot gnu.org 2022-08-11 6:59 ` i at maskray dot me 2022-08-11 9:00 ` linkw at gcc dot gnu.org 2022-08-11 15:27 ` segher at gcc dot gnu.org 2022-08-12 3:00 ` amodra at gmail dot com 2022-08-12 13:02 ` segher at gcc dot gnu.org 2022-08-24 7:13 ` linkw at gcc dot gnu.org 2022-08-24 7:18 ` linkw at gcc dot gnu.org 2022-09-30 12:18 ` cvs-commit at gcc dot gnu.org 2022-09-30 12:34 ` linkw at gcc dot gnu.org 2022-09-30 12:35 ` linkw at gcc dot gnu.org 2024-01-17 13:58 ` matz at gcc dot gnu.org 2024-01-18 5:41 ` linkw at gcc dot gnu.org 2024-01-20 17:17 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-99888-4-8AHdGhE3kM@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).