This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch,AVR] Print no-return functions as JMP


On Friday 14 October 2011 18:19:00, Georg-Johann Lay wrote:
> Paolo Bonzini schrieb:
> > On 10/14/2011 06:23 PM, Georg-Johann Lay wrote:
> >> +@item -mjump-to-noreturn
> >> +@opindex mjump-to-noreturn
> >> +Use a jump instruction instead of a call instruction when calling a
> >> +no-return functions.  This option is active if optimization is turned
> >> +on and just affects the way a call instruction is printed out.
> >> +Besides that, it has no effect on code generation or debug information.
> > 
> > I think this is not really accurate given Richard's input.
> 
> Confused.  The conclusion was to introduce a new command line option in order
> to have individual control over this feature.  The option is named
> -mjump-to-noreturn now instead of -mjump-noreturn. Is that what you mean?

My 2c.  You've used implementor-speak to describe the option, while you
should use user-speak.  Mention that it saves stack, but the downside is
that it affects backtracing (and suggest turning it off if you want to
backtrace out of abort, etc.).  Lose the "just affects the way a call
instruction is printed out" bit -- what's "printed out"?, a user
would ask.  Some users aren't even aware there's a separate assembler
that munches text is involved.

I'd also suggest renaming the option to `-mallow-tailcall-noreturn'
or `-mtailcall-noreturn' so that its spelling and description could
be more easily shared with other targets (and perhaps promoted
as -f option).

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]