[Bug target/85978] New: config/frv/frv.c: 3 * iffy code in switch
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Tue May 29 16:27:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85978
Bug ID: 85978
Summary: config/frv/frv.c: 3 * iffy code in switch
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Target: frv
gcc/config/frv/frv.c:6715:7: warning: this statement may fall through
[-Wimplicit-fallthrough=]
gcc/config/frv/frv.c:6741:7: warning: this statement may fall through
[-Wimplicit-fallthrough=]
gcc/config/frv/frv.c:6766:7: warning: this statement may fall through
[-Wimplicit-fallthrough=]
Source code for the first one is
switch (to)
{
default:
break;
Instead merely carrying on with the code after the switch,
and going into the next case for the outer switch,
perhaps better code would flag up in some way the unexpected
value of "to" ?
More information about the Gcc-bugs
mailing list