[Bug c/79227] Questionable -Wmisleading-indentation diagnostic in HSAIL-Tools

2017-01-25 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79227 --- Comment #2 from David Malcolm --- Created attachment 40579 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40579&action=edit Patch to tweak Wmisleading indentation This patch removes the "(guard_exploc.line == body_exploc.line)" conditi

[Bug c/79227] Questionable -Wmisleading-indentation diagnostic in HSAIL-Tools

2017-01-25 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79227 --- Comment #1 from David Malcolm --- Some notes: There are 7 cases in the reproducer, but it only warns for the 3rd case (lines 34-35). In each of the 7 cases in the reproducer, NEXT_STMT_LOC and BODY_LOC are on the same line: /* If NEXT_ST