From 1218f76f22135757dee9f062fdec04b57b3ce6bb Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Fri, 26 Jun 2015 16:59:11 +0200 Subject: [PATCH] Fix PR 66301 - check for dump_file in eliminate_dom_walker::before_dom_children 2015-06-26 Martin Jambor PR debug/66301 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not NULL instead of calling dump_enabled_p. From-SVN: r225019 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-pre.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 460e78cbfc6..af039248c15 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-06-26 Martin Jambor + + PR debug/66301 + * tree-ssa-pre.c (before_dom_children): Check that dump_file is not + NULL instead of calling dump_enabled_p. + 2015-06-26 James Greenhalgh * config/aarch64/aarch64.opt: (override): New. diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index 59924dffe2b..b4e34774f18 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -4366,7 +4366,7 @@ eliminate_dom_walker::before_dom_children (basic_block b) (OBJ_TYPE_REF_TOKEN (fn)), context, &final); - if (dump_enabled_p ()) + if (dump_file) dump_possible_polymorphic_call_targets (dump_file, obj_type_ref_class (fn), tree_to_uhwi -- 2.30.2