https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118136
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >+__attribute__((naked)) void custom_start() { calls This is not defined code as naked is only to be used with one inline-asm without any calls.