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]

[Bug inline-asm/32178] RAX and EAX are used as two different registers



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-06-01 14:14 -------
Your inline-asm is broken, you early clobber the output so you need to mark as
such like:

        asm volatile("movl  $1,%0 \n\t" \
                "xchgl %0,%1 \n\t" \
                "xorl  $1,%0"
                : "=&r"(lacquired)
                : "m"(*l)
                : "memory");


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32178


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