[Bug target/77882] [Aarch64] Add 'naked' function attribute

e2lahav at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Oct 28 11:17:00 GMT 2019


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

Elad Lahav <e2lahav at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |e2lahav at gmail dot com

--- Comment #4 from Elad Lahav <e2lahav at gmail dot com> ---
Created attachment 47119
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47119&action=edit
Proposed implementation of naked functions for aarch64

The change is quite simple (see the proposed patch). I hope it can be made, as
I find naked functions quite useful, especially by allowing the use of certain
C features in otherwise pure assembly code (e.g., offsetof, _Static_assert).
Aesthetically, naked functions provide proper prototypes that are easier to
follow, document and test.


More information about the Gcc-bugs mailing list