aboutsummaryrefslogtreecommitdiff
path: root/gcc/df-scan.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2010-11-16 22:13:52 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2010-11-16 22:13:52 +0000
commit885c9b5d3a53c531fca622b4a3b0ef03df92daed (patch)
treed3ce62c6785fad984002bec2dbfc693e299f8950 /gcc/df-scan.c
parent2b12962772d3b0e85d860609f32bfb28515d5ba9 (diff)
downloadgcc-885c9b5d3a53c531fca622b4a3b0ef03df92daed.zip
gcc-885c9b5d3a53c531fca622b4a3b0ef03df92daed.tar.gz
gcc-885c9b5d3a53c531fca622b4a3b0ef03df92daed.tar.bz2
re PR rtl-optimization/46315 (-O2 -fno-strict-overflow causes wrong code generation)
PR rtl-optimization/46315 * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare. * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function extracted from... * dce.c (delete_corresponding_reg_eq_notes): ...here. Rename into... (remove_reg_equal_equiv_notes_for_defs): ...this. (delete_unmarked_insns): Adjust to above renaming. * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes referring to registers set in the insns being moved, if any. * df-core.c (df_ref_dump): New function extracted from... (df_refs_chain_dump): ...here. Call it. (df_regs_chain_dump): Likewise. * df-problems.c (df_chain_dump): Print 'e' for uses in notes. * df-scan.c (df_scan_start_dump): Likewise. Fix long line. From-SVN: r166827
Diffstat (limited to 'gcc/df-scan.c')
-rw-r--r--gcc/df-scan.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/df-scan.c b/gcc/df-scan.c
index 850f067..5cda897 100644
--- a/gcc/df-scan.c
+++ b/gcc/df-scan.c
@@ -445,7 +445,7 @@ df_scan_start_dump (FILE *file ATTRIBUTE_UNUSED)
}
if (DF_REG_EQ_USE_COUNT (i))
{
- fprintf (file, "%s%dd", sep, DF_REG_EQ_USE_COUNT (i));
+ fprintf (file, "%s%de", sep, DF_REG_EQ_USE_COUNT (i));
ecount += DF_REG_EQ_USE_COUNT (i);
}
fprintf (file, "} ");
@@ -461,8 +461,10 @@ df_scan_start_dump (FILE *file ATTRIBUTE_UNUSED)
icount++;
}
- fprintf (file, "\n;; total ref usage %d{%dd,%du,%de} in %d{%d regular + %d call} insns.\n",
- dcount + ucount + ecount, dcount, ucount, ecount, icount + ccount, icount, ccount);
+ fprintf (file, "\n;; total ref usage %d{%dd,%du,%de}"
+ " in %d{%d regular + %d call} insns.\n",
+ dcount + ucount + ecount, dcount, ucount, ecount,
+ icount + ccount, icount, ccount);
}
/* Dump the bb_info for a given basic block. */