This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37631] non-volatile asm passes volatile asm (-O3)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Sep 2008 23:50:51 -0000
- Subject: [Bug c++/37631] non-volatile asm passes volatile asm (-O3)
- References: <bug-37631-16751@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-09-23 23:50 -------
A volatile asm is not a full barrier.
Please read http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/Extended-Asm.html.
" Note that even a volatile asm instruction can be moved relative to other
code, including across jump instructions. For example, on many targets there is
a system register which can be set to control the rounding mode of floating
point operations. "
This came about with the fix for PR 17884.
*** This bug has been marked as a duplicate of 17884 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37631