This is the mail archive of the gcc-help@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: arm-elf inline assembly problem (gcc bug?)


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


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