summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-12 23:32:56 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-12 23:32:56 +0000
commit16ab4e9713db741336b76b84a58029e569937efe (patch)
tree2ee975a545115ee82f6b6150c215d435f7f4a2b9
parent906c255962f2e3a3cc410239291e4fc2aae20945 (diff)
downloadgcc-16ab4e9713db741336b76b84a58029e569937efe.tar.gz
* tree-ssa-ccp.c (dump_lattice_value) <CONSTANT>: Fix duplication.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193459 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-ssa-ccp.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c1904afeeea..8f696b06caf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2012-11-12 Eric Botcazou <ebotcazou@adacore.com>
+ * tree-ssa-ccp.c (dump_lattice_value) <CONSTANT>: Fix duplication.
+
+2012-11-12 Eric Botcazou <ebotcazou@adacore.com>
+
* common.opt (fvar-tracking-uninit): Document.
* toplev.c (process_options): Fix handling of flag_var_tracking_uninit.
* config/darwin.c (darwin_override_options): Likewise.
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c
index cb6b62b7b97..7f0c407caa8 100644
--- a/gcc/tree-ssa-ccp.c
+++ b/gcc/tree-ssa-ccp.c
@@ -184,10 +184,12 @@ dump_lattice_value (FILE *outf, const char *prefix, prop_value_t val)
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);