https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |crazylht at gmail dot com,
                   |                            |wwwhhhyyy333 at gmail dot com

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Andrew Cooper from comment #0)
> 
> Finally, one minor code generation improvement.  When GCC emits a direct
> call/jmp to an ENDBR'd symbol, it can actually use sym+4 as an optimisation
> to skip the ENDBR instruction (not needed for direct call/jmp's) and save on
> decode bandwidth.

It is only safe for calling a static function whose address has been taken.

Reply via email to