Another iteration of trying to fix the regression caused by r223098
("Implement -Wmisleading-indentation"). Patch #1 is the same as v1,
except for some minor changes to the test case. Patch #2 fixes some
additional cases where the back-jump's location was set wrongly, and
it removes the dependency on input_location for this purpose.
Tested on s390x without regressions.
Previous versions:
* v1: https://gcc.gnu.org/ml/gcc-patches/2015-10/msg01132.html
* v2: https://gcc.gnu.org/ml/gcc-patches/2015-10/msg02393.html
Andreas Arnez (2):
[PR debug/67192] Fix C loops' back-jump location
[PR debug/67192] Further fix C loops' back-jump location
gcc/c/c-parser.c | 13 +++---
gcc/c/c-typeck.c | 10 +++++
gcc/testsuite/gcc.dg/guality/pr67192.c | 79 ++++++++++++++++++++++++++++++++++
3 files changed, 96 insertions(+), 6 deletions(-)
create mode 100644 gcc/testsuite/gcc.dg/guality/pr67192.c
--
2.3.0