Fix duplicated messages in .ccp dumps

Submitted by Eric Botcazou on Nov. 12, 2012, 11:31 p.m.

Details

Message ID 1372793.hryu39zGKC@polaris
State New
Headers show

Commit Message

Eric Botcazou Nov. 12, 2012, 11:31 p.m.
They show up when a lattice value changed is to CONSTANT.

Tested on x86_64-suse-linux, applied on mainline as obvious.


2012-11-12  Eric Botcazou  <ebotcazou@adacore.com>

	* tree-ssa-ccp.c (dump_lattice_value) <CONSTANT>: Fix duplication.

Patch hide | download patch | download mbox

Index: tree-ssa-ccp.c
===================================================================
--- tree-ssa-ccp.c	(revision 193405)
+++ tree-ssa-ccp.c	(working copy)
@@ -184,10 +184,12 @@  dump_lattice_value (FILE *outf, const ch
       fprintf (outf, "%sVARYING", prefix);
       break;
     case CONSTANT:
-      fprintf (outf, "%sCONSTANT ", prefix);
       if (TREE_CODE (val.value) != INTEGER_CST
 	  || val.mask.is_zero ())
-	print_generic_expr (outf, val.value, dump_flags);
+	{
+	  fprintf (outf, "%sCONSTANT ", prefix);
+	  print_generic_expr (outf, val.value, dump_flags);
+	}
       else
 	{
 	  double_int cval = tree_to_double_int (val.value).and_not (val.mask);