On May 31, 2018 12:02:49 PM GMT+02:00, Jakub Jelinek <ja...@redhat.com> wrote: >On Thu, May 31, 2018 at 11:46:33AM +0200, Richard Biener wrote: >> Is naked an attribute that is specified for all targets? If so, OK. > >It is not specified for all targets, but all targets for which it is >specified have the same behavior. >We handle "naked" a couple of times in the generic code already, e.g. >in >attribs.c (naked implies noinline/noclone), or in cfgexpand.c (refuse >allocation of vars on the stack for "naked" functions).
OK then. Richard. >> Otherwise we may instead want to add a target hook for whether a >function >> has a prologue/epilogue? > > Jakub