This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR/24146, asms with no outputs are not treated as volatile
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 30 Sep 2005 10:50:38 -0400
- Subject: Re: PR/24146, asms with no outputs are not treated as volatile
- References: <433D4E9D.6060108@lu.unisi.ch>
On Sep 30, 2005, at 10:41 AM, Paolo Bonzini wrote:
The problem is that expand_asm_operands does mark the asm as volatile,
but only after the tree optimization passes have had many
opportunities to optimize it away. It can be fixed in the gimplifier
or in the front-end, I chose the latter.
Plus you forgot about the C++ front-end also.
--- Pinski