This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: target/5621: ARM compiler aborts with asm "m" constraint
- 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, hans dot buchmann at fhso dot ch, nobody at gcc dot gnu dot org
- Date: 7 Feb 2002 14:11:44 -0000
- Subject: Re: target/5621: ARM compiler aborts with asm "m" constraint
- 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, hans dot buchmann at fhso dot ch, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Old Synopsis: assembler code
New Synopsis: ARM compiler aborts with asm "m" constraint
State-Changed-From-To: open->analyzed
State-Changed-By: rearnsha
State-Changed-When: Thu Feb 7 06:11:43 2002
State-Changed-Why:
While the compiler shouldn't abort for this, you probably won't ever
be able to make such an instruction work as you've expressed
it.
The best way of expressing what you want here, so that the
compiler can handle it cleanly is
asm volatile(
"ldr %0,[%1]\n\t"
:"=r"(i)
:"r"(&x)
);
The compiler should be fixed to give an error in this case.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5621