Fix a thinko in dumping in ipa-cp.c

Message ID 20130218195435.GA19120@virgil.suse
State New
Headers show

Commit Message

Martin Jambor Feb. 18, 2013, 7:54 p.m.

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.



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");