diff options
author | David Malcolm <dmalcolm@redhat.com> | 2016-03-04 15:45:19 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2016-03-04 15:45:19 +0000 |
commit | 729526f5d4399d141458ca0026490a1231149338 (patch) | |
tree | 437b3b6b9215076f13844d2bc99227445a912367 /gcc/tree-ssa-threadbackward.c | |
parent | f9ea11ac194e5129ff90145a73b91b08a244174b (diff) | |
download | gcc-729526f5d4399d141458ca0026490a1231149338.zip gcc-729526f5d4399d141458ca0026490a1231149338.tar.gz gcc-729526f5d4399d141458ca0026490a1231149338.tar.bz2 |
PR c/68187: fix overzealous -Wmisleading-indentation (comment #0)
gcc/c-family/ChangeLog:
PR c/68187
* c-indentation.c (should_warn_for_misleading_indentation): When
suppressing warnings about cases where the guard and body are on
the same column, only use the first non-whitespace column in place
of the guard token column when dealing with "else" clauses.
When rejecting aligned BODY and NEXT, loosen the requirement
from equality with the first non-whitespace of guard to simply
that they not be indented relative to it.
gcc/testsuite/ChangeLog:
PR c/68187
* c-c++-common/Wmisleading-indentation.c (fn_40_a): New test
function.
(fn_40_b): Likewise.
(fn_41_a): Likewise.
(fn_41_b): Likewise.
From-SVN: r233971
Diffstat (limited to 'gcc/tree-ssa-threadbackward.c')
0 files changed, 0 insertions, 0 deletions