https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112980
Kewen Lin <linkw at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matz at gcc dot gnu.org Last reconfirmed| |2024-01-18 Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gnu.org Ever confirmed|0 |1 See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=99888 Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Kewen Lin <linkw at gcc dot gnu.org> --- [1] made me realize that I forgot to post some comments here. (I thought I did but actually didn't). As Segher's review comments in [2], to support "before NOPs" before global entry and "after NOPs" after global entry, we need to introduce a separate command line option, I think it can be a target specific option, which is enabled by default and we should mention its default behavior and impact in the current documentation for -fpatchable-function-entry. I don't have a good name candidate, any suggestions? Considering that the current behavior aligning with consecutive NOPs looks useless (this request and [1]), an alternative is to aggressively change the current behavior to "before NOPs" before global entry and "after NOPs" after global entry. Any preference or other ideas? Any comments are highly appreciated. I think with either (any) proposal it's inevitable to make the current behavior of -fpatchable-function-entry on "before NOPs" change, we should also document this change in releases/changes.html. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99888#c15 [2] https://gcc.gnu.org/pipermail/gcc-patches/2022-August/600239.html