Re: return statement in a function with the naked attribute

2013-05-03 Thread David Brown
On 03/05/13 06:03, reed kotler wrote: > On 05/02/2013 08:41 PM, Chung-Ju Wu wrote: >> 2013/5/3 reed kotler : >>> 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 >>>

Re: return statement in a function with the naked attribute

2013-05-03 Thread David Brown
On 03/05/13 06:40, Geert Bosch wrote: > > On May 3, 2013, at 00:15, reed kotler wrote: > >> There was some confusion on the llvm list because some tests were run on >> targets that did not support the naked attribute. >> >> I think we are thinking now that the return statement should not be emi

Re: return statement in a function with the naked attribute

2013-05-02 Thread Geert Bosch
On May 3, 2013, at 00:15, reed kotler wrote: > There was some confusion on the llvm list because some tests were run on > targets that did not support the naked attribute. > > I think we are thinking now that the return statement should not be emitted > unless explicitly requested. > > It's

Re: return statement in a function with the naked attribute

2013-05-02 Thread reed kotler
On 05/02/2013 09:06 PM, Ian Lance Taylor wrote: On Thu, May 2, 2013 at 8:59 PM, reed kotler wrote: On 05/02/2013 07:54 PM, Ian Lance Taylor wrote: On Thu, May 2, 2013 at 3:44 PM, reed kotler wrote: Should a return statement be emitted in a function that has the naked attribute. I vote yes.

Re: return statement in a function with the naked attribute

2013-05-02 Thread Ian Lance Taylor
On Thu, May 2, 2013 at 8:59 PM, reed kotler wrote: > On 05/02/2013 07:54 PM, Ian Lance Taylor wrote: >> >> On Thu, May 2, 2013 at 3:44 PM, reed kotler wrote: >>> >>> Should a return statement be emitted in a function that has the naked >>> attribute. >> >> I vote yes. > > why would you want that?

Re: return statement in a function with the naked attribute

2013-05-02 Thread reed kotler
On 05/02/2013 08:41 PM, Chung-Ju Wu wrote: 2013/5/3 reed kotler : 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. IMHO, it depends on how you define the word 'nake

Re: return statement in a function with the naked attribute

2013-05-02 Thread reed kotler
On 05/02/2013 07:54 PM, Ian Lance Taylor wrote: On Thu, May 2, 2013 at 3:44 PM, reed kotler wrote: Should a return statement be emitted in a function that has the naked attribute. I vote yes. why would you want that? naked functions are just inline asm. you can generate your own return statem

Re: return statement in a function with the naked attribute

2013-05-02 Thread Chung-Ju Wu
2013/5/3 reed kotler : > 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. > IMHO, it depends on how you define the word 'naked' for a function and how you expe

Re: return statement in a function with the naked attribute

2013-05-02 Thread Ian Lance Taylor
On Thu, May 2, 2013 at 3:44 PM, reed kotler wrote: > Should a return statement be emitted in a function that has the naked > attribute. I vote yes. > There seems to be some confusion here and apparently disagreement between > various > gcc compilers. Which targets do not generate a return instr

Re: return statement in a function with the naked attribute

2013-05-02 Thread reed kotler
On 05/02/2013 04:16 PM, Andrew Pinski wrote: On Thu, May 2, 2013 at 3:46 PM, reed kotler 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

Re: return statement in a function with the naked attribute

2013-05-02 Thread Andrew Pinski
On Thu, May 2, 2013 at 3:46 PM, reed kotler 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. >>

Re: return statement in a function with the naked attribute

2013-05-02 Thread reed kotler
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

return statement in a function with the naked attribute

2013-05-02 Thread reed kotler
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.