This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/66469] New: config/rl78/rl78.c:679: possible bad array index ?
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 09 Jun 2015 08:17:42 +0000
- Subject: [Bug target/66469] New: config/rl78/rl78.c:679: possible bad array index ?
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66469
Bug ID: 66469
Summary: config/rl78/rl78.c:679: possible bad array index ?
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
[trunk/gcc/config/rl78/rl78.c:679]: (style) Array index 'regno' is used before
limits check.
if (!crtl->is_leaf && call_used_regs[regno] && regno < 22)
Possible minor tidy up to put the sanity check before the use.