[cfe-dev] naked attribute

Jeffrey Walton noloader at gmail.com
Thu May 2 19:44:33 PDT 2013

On Thu, May 2, 2013 at 5:08 PM, Tim Northover <t.p.northover at gmail.com> wrote:
> Hi Reed,
>> I propose to make the following change to clang.
>> In the presence of the "naked" attribute, in cases where clang would
>> normally implicitly emit a "return" instruction, it should emit an
>> "unreachable" instruction.
> I'd have loved to if we were designing the attribute from scratch; I
> think the semantics would definitely be better. Unfortunately GCC got
> there first, and at least on AArch64 it also puts the implicit return
> in. I'll check AArch32 at work tomorrow.
I seem to recall it in Visual Studio going back to the 5.0 days (late
1990s). For Microsoft, it was available on x86.

Is there still interest in the Windows compat stuff?

More information about the cfe-dev mailing list