[PATCH] D22045: [X86] Support of no_caller_saved_registers attribute (Clang part)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 8 08:52:34 PDT 2016


On Mon, Aug 8, 2016 at 11:50 AM, H.J Lu <hjl.tools at gmail.com> wrote:
> hjl.tools added a comment.
>
> In https://reviews.llvm.org/D22045#508648, @aaron.ballman wrote:
>
>> In https://reviews.llvm.org/D22045#508644, @hjl.tools wrote:
>>
>> > In https://reviews.llvm.org/D22045#506996, @joerg wrote:
>> >
>> > > For what it is worth, this certainly seems to be misnamed. By nature, if it doesn't preserve at least the stack pointer, there is no way to recover on return, right?
>> >
>> >
>> > This is the best name we came up with and has been implemented in GCC.
>>
>>
>> What version of GCC supports this attribute? I tried 6.1.0 and it is unknown there.
>
>
> It is implemented in GCC 7.

Okay, that is good to know! Then the attribute should be using the GCC
spelling rather than the GNU spelling. This also obviates the need for
an explicit CXX11 spelling under the clang:: namespace, if our
intention is for this attribute to match GCC's behavior.

~Aaron

>
>
> https://reviews.llvm.org/D22045
>
>
>


More information about the cfe-commits mailing list