This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] asm goto
- From: Richard Henderson <rth at redhat dot com>
- To: Paolo Bonzini <bonzini at gnu dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, jbaron at redhat dot com
- Date: Mon, 27 Jul 2009 19:36:59 -0700
- Subject: Re: [RFC] asm goto
- References: <4A6E1BE6.8060504@redhat.com> <4A6E4325.3050607@gnu.org>
On 07/27/2009 05:15 PM, Paolo Bonzini wrote:
What's the need for the "asm goto" syntax? The fourth colon should be
enough.
Well, technically no real need. Roland used "asm goto" first in one
of his messages internally, and it kind of stuck. Also, my first
implementation of this put the labels into the output section, with
the thought that since asm goto can't have outputs, the fact that
the section is re-used emphasizes that fact. But in the end I moved
the labels to the end so as not to preclude a register allocator that
can handle output reloads on a jump insn, and so be able to remove
the no-outputs constraint.
That said, I'm mildly of the opinion that leaving the goto intact
doesn't hurt emphasizing that this asm can branch.
r~