return statement in a function with the naked attribute

reed kotler rkotler@mips.com
Thu May 2 23:40:00 GMT 2013


On 05/02/2013 04:16 PM, Andrew Pinski wrote:
> On Thu, May 2, 2013 at 3:46 PM, reed kotler <rkotler@mips.com> wrote:
>> On 05/02/2013 03:44 PM, reed kotler wrote:
>>> Should a return statement be emitted in a function that has the naked
>>> attribute.
>>>
>>> There seems to be some confusion here and apparently disagreement between
>>> various
>>> gcc compilers.
>>>
>> Sorry. This was meant to be a question.
>>
>> Should a return statement be emitted in a function that has the naked
>> attribute?
> I don't see why there is any confusion about this for interrupt
> handlers on MIPS (the interrupt attribute being used here).  They
> either use eret or deret which is controlled by the use of the
> use_debug_exception_return attribute.

This is not a Mips specific question.

It's a general question about the naked attribute for functions.

Should a return statement be emitted in a function that has the naked
attribute?


> Thanks,
> Andrew Pinski
>
>> Tia.
>>
>> Reed
>>




More information about the Gcc mailing list