Commit Message

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 update the existing calls (in
vectorizer passes) of the form
if (dump_kind_p (flags))
dump_printf(flags, ...)
to
if (dump_enabled_p ())
dump_printf(flags, ...)
Bootstrapped and tested on x86_64 and didn't observe any new test
failures. Okay for trunk?
Thanks,
Sharad
2012-10-19 Sharad Singhai <singhai@google.com>
* dumpfile.c (dump_phase_enabled_p): Renamed dump_enabled_p. Update
all callers.
(dump_enabled_p): A new function to check if any of the dump files
is available.
(dump_kind_p): Remove check for current_function_decl. Add check for
dumpfile and alt_dump_file.
* dumpfile.h: Add declaration of dump_enabled_p.