From: Martin Jambor Date: Fri, 26 Jun 2015 14:59:11 +0000 (+0200) Subject: Fix PR 66301 - check for dump_file in eliminate_dom_walker::before_dom_children X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1218f76f22135757dee9f062fdec04b57b3ce6bb;p=gcc.git 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 --- 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