This is the mail archive of the gcc-bugs@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: target/5621: ARM compiler aborts with asm "m" constraint


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


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