Patchwork Fix duplicated messages in .ccp dumps

login
register
mail settings
Submitter Eric Botcazou
Date Nov. 12, 2012, 11:31 p.m.
Message ID <1372793.hryu39zGKC@polaris>
Download mbox | patch
Permalink /patch/198500/
State New
Headers show

Comments

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

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