https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79152
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79152
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
CC|
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;
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79152
Richard Biener changed:
What|Removed |Added
Keywords||diagnostic
Status|UNCONFIRM