From patchwork Mon Feb 18 19:54:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix a thinko in dumping in ipa-cp.c Date: Mon, 18 Feb 2013 09:54:35 -0000 From: Martin Jambor X-Patchwork-Id: 221460 Message-Id: <20130218195435.GA19120@virgil.suse> To: GCC Patches Hi, in ipa-cp there is a dumping condition that was intended to trigger for non-aliases and non-thunks but I have lost the negations somewhere when introducing the code. This probably shows this particular dumping is not very crucial but I think it summarizes the initialization well and decided to keep it. The following patch has successfully bootstrapped and passed testsuite on x86_64-linux, I intend to commit it as obvious tomorrow unless someone objects. Thanks, Martin 2013-02-07 Martin Jambor * ipa-cp.c (initialize_node_lattices): Fix dumping condition. Index: src/gcc/ipa-cp.c =================================================================== --- src.orig/gcc/ipa-cp.c +++ src/gcc/ipa-cp.c @@ -725,7 +725,7 @@ initialize_node_lattices (struct cgraph_ set_all_contains_variable (plats); } if (dump_file && (dump_flags & TDF_DETAILS) - && node->alias && node->thunk.thunk_p) + && !node->alias && !node->thunk.thunk_p) fprintf (dump_file, "Marking all lattices of %s/%i as %s\n", cgraph_node_name (node), node->uid, disable ? "BOTTOM" : "VARIABLE");