[Bug c/79152] -Wimplicit-fallthrough false positive triggered by goto statements

2017-01-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79152 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/79152] -Wimplicit-fallthrough false positive triggered by goto statements

2017-01-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79152 --- Comment #5 from Marek Polacek --- Author: mpolacek Date: Fri Jan 20 16:28:16 2017 New Revision: 244726 URL: https://gcc.gnu.org/viewcvs?rev=244726&root=gcc&view=rev Log: PR c/79152 * gimplify.c (should_warn_for_implicit_fallt

[Bug c/79152] -Wimplicit-fallthrough false positive triggered by goto statements

2017-01-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79152 --- Comment #4 from Marek Polacek --- I think the problem is that 1988 /* Don't warn for a non-case label followed by a statement: 1989case 0: 1990 foo (); 1991label: 1992 bar (); 1993 as these are

[Bug c/79152] -Wimplicit-fallthrough false positive triggered by goto statements

2017-01-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79152 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[Bug c/79152] -Wimplicit-fallthrough false positive triggered by goto statements

2017-01-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79152 --- Comment #2 from Jakub Jelinek --- Simplified testcase: int foo (int x, char *y) { switch (x) { case 1: goto lab1; goto lab2; x = y[0]; lab2: lab1: x += y[1]; } return x; }

[Bug c/79152] -Wimplicit-fallthrough false positive triggered by goto statements

2017-01-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79152 Richard Biener changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRM