aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@linaro.org>2017-12-04 17:04:18 +0000
committerLuis Machado <luisgpm@gcc.gnu.org>2017-12-04 17:04:18 +0000
commit75622c9e2f81c00feb50a347b8ad6063b2a5134f (patch)
tree6043d6b87a9bf1d329ce893f0e16d1f474a35002
parentd49e06ce40a76c3f6e96bf2eccb59db19d4d2b1d (diff)
downloadgcc-75622c9e2f81c00feb50a347b8ad6063b2a5134f.zip
gcc-75622c9e2f81c00feb50a347b8ad6063b2a5134f.tar.gz
gcc-75622c9e2f81c00feb50a347b8ad6063b2a5134f.tar.bz2
Fix missing newlines from local-pure-const pass dump
I noticed the debugging output from local-pure-const pass is missing a newline in a couple places, leading to this: local analysis of main scanning: i ={v} 0; Volatile stmt is not const/pure Volatile operand is not const/pure scanning: j ={v} 20; Volatile stmt is not const/pure Volatile operand is not const/pure scanning: vol.0_10 ={v} i; Volatile stmt is not const/pure It should've been: local analysis of main scanning: i ={v} 0; Volatile stmt is not const/pure Volatile operand is not const/pure scanning: j ={v} 20; Volatile stmt is not const/pure Volatile operand is not const/pure scanning: vol.0_10 ={v} i; Volatile stmt is not const/pure gcc/ChangeLog: 2017-12-04 Luis Machado <luis.machado@linaro.org> * ipa-pure-const.c (check_decl): Add missing newline. (state_from_flags): Likewise. From-SVN: r255388
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-pure-const.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 97c64c7..3d2492f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2017-12-04 Luis Machado <luis.machado@linaro.org>
+
+ * ipa-pure-const.c (check_decl): Add missing newline.
+ (state_from_flags): Likewise.
+
2017-12-04 Jeff Law <law@redhat.com>
PR tree-optimizatin/78496
diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c
index bdc7522..22f92fc 100644
--- a/gcc/ipa-pure-const.c
+++ b/gcc/ipa-pure-const.c
@@ -332,7 +332,7 @@ check_decl (funct_state local,
{
local->pure_const_state = IPA_NEITHER;
if (dump_file)
- fprintf (dump_file, " Volatile operand is not const/pure");
+ fprintf (dump_file, " Volatile operand is not const/pure\n");
return;
}
@@ -446,7 +446,7 @@ state_from_flags (enum pure_const_state_e *state, bool *looping,
{
*looping = true;
if (dump_file && (dump_flags & TDF_DETAILS))
- fprintf (dump_file, " looping");
+ fprintf (dump_file, " looping\n");
}
if (flags & ECF_CONST)
{