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 dot bonzini at lu dot unisi dot ch (Paolo Bonzini)
- Cc: gcc-patches at gcc dot gnu dot org (GCC Patches)
- Date: Fri, 30 Sep 2005 10:56:23 -0400 (EDT)
- Subject: Re: PR/24146, asms with no outputs are not treated as volatile
>
> This is a multi-part message in MIME format.
> --------------070504040806020909060201
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit
>
> 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.
>
> This patch passes the new testcase and is undergoing
> bootstrap/regtesting. Ok if it passes?
Sorry if this is a duplicate email but the first one did seem to go
through.
You forgot about the C++ front-end. I think the Ada front-end has the
same issue too.
-- Pinski