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
+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
{
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;
}
{
*looping = true;
if (dump_file && (dump_flags & TDF_DETAILS))
- fprintf (dump_file, " looping");
+ fprintf (dump_file, " looping\n");
}
if (flags & ECF_CONST)
{