Re: [PATCH] Fix dumps for IPA passes

2012-10-22 Thread Richard Biener
On Sat, Oct 20, 2012 at 3:24 AM, Sharad Singhai wrote: > As suggested in http://gcc.gnu.org/ml/gcc/2012-10/msg00285.html, I > have updated the attached patch to rename 'dump_enabled_phase' to > 'dump_enabled_phase_p'. The 'dump_enabled_p ()' doesn't take any > argument and can be used as a predica

Re: [PATCH] Fix dumps for IPA passes

2012-10-19 Thread Sharad Singhai
As suggested in http://gcc.gnu.org/ml/gcc/2012-10/msg00285.html, I have updated the attached patch to rename 'dump_enabled_phase' to 'dump_enabled_phase_p'. The 'dump_enabled_p ()' doesn't take any argument and can be used as a predicate for the dump calls. Once this patch gets in, the plan is to

[PATCH] Fix dumps for IPA passes

2012-10-18 Thread Sharad Singhai
Hi, This patch fixes a problem with the new dump infrastructure as discussed in http://gcc.gnu.org/ml/gcc/2012-10/msg00227.html. It removes a check for current_function_decl so that dumps will work for IPA passes. In addition, this patch also adds a new inline function to check if any dump files