This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]