[Bug c++/37631] non-volatile asm passes volatile asm (-O3)

pardo at google dot com gcc-bugzilla@gcc.gnu.org
Mon Sep 29 17:49:00 GMT 2008



------- Comment #2 from pardo at google dot com  2008-09-29 17:48 -------
How can I prevent relative motion?  I tried adding a "memory" constraint to all
asms, but they are still moved past each other.  I expected any common
constraint would keep them from crossing.

(Adding "volatile" to all asms does prevent relative motion but inhibits other
optimizations so is undesirable.)


-- 

pardo at google dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org


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



More information about the Gcc-bugs mailing list