[Bug c/28729] Assignment to data used in __asm() get optimised away.

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Aug 14 21:05:00 GMT 2006



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-08-14 21:04 -------
(In reply to comment #2)
> So how can you say that the asm uses the contents of a buffer area?

Didn't you see the first part of my comment which shows you how to fix the asm?
__asm volatile("lidt (%0)" : : "r" (p), "m"(*p));


-- 

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=28729



More information about the Gcc-bugs mailing list