This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: inline-asm/10035: arm register r0 is corrupted
- From: rearnsha at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, murphychen at mail2000 dot com dot tw, nobody at gcc dot gnu dot org
- Date: 12 Mar 2003 11:58:05 -0000
- Subject: Re: inline-asm/10035: arm register r0 is corrupted
- Reply-to: rearnsha at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, murphychen at mail2000 dot com dot tw, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: arm register r0 is corrupted
State-Changed-From-To: open->closed
State-Changed-By: rearnsha
State-Changed-When: Wed Mar 12 11:58:05 2003
State-Changed-Why:
Register r0 is reserved by the ABI for passing arguments to functions and for returning results from those functions. You can't reserve it for your own variable. In general, you must restrict fixed register allocations to registers that don't have specific purposes in the ABI. For ARM this is the set r4-r8 (and in some circumstances you may also use r9 and r10).
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10035