Fix PR 66301 - check for dump_file in eliminate_dom_walker::before_dom_children
authorMartin Jambor <mjambor@suse.cz>
Fri, 26 Jun 2015 14:59:11 +0000 (16:59 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 26 Jun 2015 14:59:11 +0000 (16:59 +0200)
2015-06-26  Martin Jambor  <mjambor@suse.cz>

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
gcc/tree-ssa-pre.c

index 460e78cbfc6254523fd5713639a08cc57506c2a3..af039248c15e5a47b0c2fe6fdc2a179f7efb1508 100644 (file)
@@ -1,3 +1,9 @@
+2015-06-26  Martin Jambor  <mjambor@suse.cz>
+
+       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  <james.greenhalgh@arm.com>
 
        * config/aarch64/aarch64.opt: (override): New.
index 59924dffe2bd98efd7bb774e8c44090e97efc177..b4e34774f183ac75d1925995ab36cf977127be94 100644 (file)
@@ -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