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: [RFC] asm goto


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~



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