https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77882
--- Comment #10 from Christophe Monat <christophe.monat at st dot com> --- (In reply to Elad Lahav from comment #9) Thanks for your patch proposal! > 1. GCC emits a warning: > /home/elahav/src/projects/aarch64_naked/aarch64_naked.c:15:1: warning: no > return statement in function returning non-void [-Wreturn-type] > } > This is true for ARMv7 as well. I would not expect such a warning in a > naked function. You may be interested in reading this : bug https://bugs.launchpad.net/gcc-arm-embedded/+bug/1836547