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

rearnsha at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 28 13:44:00 GMT 2019


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

--- Comment #5 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
(In reply to Elad Lahav from comment #4)
> Created attachment 47119 [details]
> 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.

Patches need to be sent to gcc-patches@gcc.gnu.org.  Note, if you've not
contributed to gcc before you'll also need to sort out a copyright assignment
for the change (this is a non-trivial change).


More information about the Gcc-bugs mailing list