This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: arm-elf inline assembly problem (gcc bug?)
- From: Momchil Velikov <velco at fadata dot bg>
- To: Jeremy Linton <jli1010 dot NOSP_M at hotmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 28 Oct 2002 13:33:40 +0200
- Subject: Re: arm-elf inline assembly problem (gcc bug?)
- Organization: Independent entity
- References: <3DBCC177.FDE9B088@hotmail.com>
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