This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17884] [4.0 Regression] asm 'volatile' is not honored as documented
- From: "amacleod at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2004 18:53:28 -0000
- Subject: [Bug tree-optimization/17884] [4.0 Regression] asm 'volatile' is not honored as documented
- References: <20041007193056.17884.fjahanian@apple.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From amacleod at redhat dot com 2004-10-08 18:53 -------
It does whatever it use to do in the RTL part of the compiler. 4.0 hasnt changed
that, whatever it is. I suspect the RTL optimizers are capable of removing
ASMs. So without volatile, the RTL backend might/could remove it.
IIn the future the tree optimizers might be smart enough to do something
differnt with ASMs, and then it could be relevent whether volatile is set or
not. It just isn't right now.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17884