target/5621: ARM compiler aborts with asm "m" constraint
rearnsha@gcc.gnu.org
rearnsha@gcc.gnu.org
Thu Feb 7 07:27:00 GMT 2002
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
More information about the Gcc-bugs
mailing list