This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Generated unique labels
- From: Richard Henderson <rth at redhat dot com>
- To: Jonah <gccmail at whalesolutions dot ca>
- Cc: James Buchanan <jamesbuch at iprimus dot com dot au>, "Joseph D. Wagner" <wagnerjd at prodigy dot net>, gcc at gcc dot gnu dot org
- Date: Fri, 3 Jan 2003 09:34:15 -0800
- Subject: Re: Generated unique labels
- References: <5.1.0.14.0.20021230031449.009ec6a0@pop.iprimus.com.au> <5.1.0.14.0.20021230031449.009ec6a0@pop.iprimus.com.au> <5.1.0.14.0.20030103114214.009e9640@pop.iprimus.com.au> <00e801c2b323$87d02e70$dbd428d9@altera.priv.altera.com>
On Fri, Jan 03, 2003 at 12:27:49PM -0000, Jonah wrote:
> I am a bit confused by where this conversation is going. Isn't the Projects
> list item referring to having labels in inline assembler. I will give you
> the problem I was having which I thought was the same problem as the
> projects file item.
>
> int simple_func (int b, int c)
> {
> int x;
> asm (
> "simple_func_loop_start:\n\t"
> " Do Assebly Stuff \n\t"
> " LOOP to simple_func_loop_start"
> : [x] "=r" (x)
> : [b] "r" (b), [c] "r" (c)
> : "r0", "r1", "memory" );
Written using assembler local labels as
"0:\n"
" Do Assembly Stuff\n"
" LOOP 0b"
r~