arm-elf inline assembly problem (gcc bug?)

Momchil Velikov velco@fadata.bg
Mon Oct 28 00:34:00 GMT 2002


On Sun, 27 Oct 2002 22:47:51 -0600
Jeremy Linton <jli1010.NOSP_M@hotmail.com> wrote:
> 0x1017e0 <_Z11PioReadCharv+52>: str     r5, [r3]
> 0x1017e4 <_Z11PioReadCharv+56>: str     r6, [r0]
> 0x1017e8 <_Z11PioReadCharv+60>: ldr     r0, [r2] <--- Note the R0
> reuse

See the documentation for the '&' constraint modifier. Basically,
you need ``: "=&r" (ret)''.

~velco



More information about the Gcc-help mailing list