https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77882
Bug ID: 77882 Summary: [Aarch64, ARM64] Add 'naked' function attribute Product: gcc Version: 6.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: christophe.monat at st dot com Target Milestone: --- With the following code fragment aarch64-attribute-naked.c : void __attribute__((naked)) dealwithit() { // Stuff removed above, below we assume that the 'naked' attribute // does the job and does not generate the usual 'ret' instruction asm("eret"::); } $ aarch64-linux-gnu-gcc -S aarch64-attribute-naked.c aarch64-attribute-naked.c:4:1: warning: 'naked' attribute directive ignored [-Wattributes] I have tried with a gcc-6.1.1, but simply as an example, this feature has never been ported to Aarch64, I think. As this attribute is supported for the legacy ARM target, it would be nice it the Aarch64 compiler could support it.