[PATCH] FIx volatile vs IPA pure/const pass (PR tree-opt/29964)

Andrew Pinski pinskia@gmail.com
Sat Nov 25 16:59:00 GMT 2006


On Fri, 2006-11-24 at 13:18 -0500, Diego Novillo wrote:
> Andrew Pinski wrote on 11/24/06 13:12:
> > 	* ipa-pure-const.c (check_tree): If the original tree
> > 	is volatile return early and say the function is not pure
> > 	nor const.  Remove the volatile check for writes.  
> > 	(analyze_function): Print out the result of the local
> > 	analysis pass.
> > 
> OK.

Also applied to the 4.2 branch after a bootstrap/test on i686-linux-gnu
since this is a regression from 4.0.4.

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list