This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch,AVR] Print no-return functions as JMP
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: "Georg-Johann Lay" <avr at gjlay dot de>, Paolo Bonzini <bonzini at gnu dot org>, Richard Henderson <rth at redhat dot com>, Denis Chertykov <chertykov at gmail dot com>, Eric Weddington <eric dot weddington at atmel dot com>
- Date: Fri, 14 Oct 2011 19:55:17 +0100
- Subject: Re: [Patch,AVR] Print no-return functions as JMP
- References: <4E972AEF.1020802@gjlay.de> <4E9867AA.3090909@gnu.org> <4E986F04.9090903@gjlay.de>
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