[PATCH] Don't emit prologues/epilogues for naked functions (PR18791, PR20028)

Anton Korobeynikov anton at korobeynikov.info
Wed Sep 3 22:36:48 PDT 2014


Correct. naked function are trivial in LLVM due to ways how prologue /
epilogue code is written, everyhing can be made target-neutral. In gcc
one should implement this separately for every target.

On Thu, Sep 4, 2014 at 7:29 AM, Hans Wennborg <hans at chromium.org> wrote:
> On Wed, Sep 3, 2014 at 7:28 PM, Saleem Abdulrasool
> <compnerd at compnerd.org> wrote:
>> Is supporting the __attribute__ (( naked )) spelling on x86 intentional?
>
> I don't know if there was any specific motivation. I suspect whoever
> added it didn't see any reason to make it target dependent. Maybe gcc
> implements it at a lower level, so that it has to be enabled
> explicitly per target.
>
>  - Hans
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits



-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the cfe-commits mailing list