This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/66469] New: config/rl78/rl78.c:679: possible bad array index ?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]