On 10/29/2015 10:49 AM, David Malcolm wrote:
tree-ssa-loop-unswitch.c has this bad indentation at line 452:
449 if (dump_file && (dump_flags & TDF_DETAILS))
450 fprintf (dump_file, ";; Not unswitching, loop is not expected"
451 " to iterate\n");
452 return false;
which leads to this warning from -Wmisleading-indentation (justifiably,
in my opinion):
../../../src/gcc/tree-ssa-loop-unswitch.c: In function ‘bool
tree_unswitch_outer_loop(loop*)’:
../../../src/gcc/tree-ssa-loop-unswitch.c:452:2: error: statement is indented
as if it were guarded by... [-Werror=misleading-indentation]
return false;
^
../../../src/gcc/tree-ssa-loop-unswitch.c:449:7: note: ...this ‘if’ clause, but
it is not
if (dump_file && (dump_flags & TDF_DETAILS))
^
This patch fixes the indentation of the "return false;"
gcc/ChangeLog:
* tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
indentation.
OK.
jeff