]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix missing newlines from local-pure-const pass dump
authorluisgpm <luisgpm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Dec 2017 17:04:18 +0000 (17:04 +0000)
committerluisgpm <luisgpm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Dec 2017 17:04:18 +0000 (17:04 +0000)
commitf7d67aae64cd0f5930b22e7633dccc1edd07ec26
tree6043d6b87a9bf1d329ce893f0e16d1f474a35002
parent5e3bbe7725f5909694bc0a527ec27467c41db29a
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255388 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-pure-const.c