This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: return statement in a function with the naked attribute
- From: Andrew Pinski <pinskia at gmail dot com>
- To: reed kotler <rkotler at mips dot com>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>, Richard Sandiford <rdsandiford at googlemail dot com>
- Date: Thu, 2 May 2013 16:16:42 -0700
- Subject: Re: return statement in a function with the naked attribute
- References: <5182EC4D dot 4070207 at mips dot com> <5182ECAF dot 8010402 at mips dot com>
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.
Thanks,
Andrew Pinski
>
> Tia.
>
> Reed
>