https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68410

            Bug ID: 68410
           Summary: config/nios2/nios2.c: 4123: duplicates in expression
           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/nios2/nios2.c:4123] -> [trunk/gcc/config/nios2/nios2.c:4123]:
(style) Same expression on both sides of '||'.

Source code is

      return (ival == 1 || ival == 2 || ival == 3 || ival == 4
          || ival == 8 || ival == 0xf || ival == 0x10
          || ival == 0x10 || ival == 0x1f || ival == 0x20
          || ival == 0x3f || ival == 0x3f || ival == 0x7f
          || ival == 0x80 || ival == 0xff || ival == 0x7ff
          || ival == 0xff00 || ival == 0xffff);

I can see that 0x10 and 0x3f are duplicates. Suggest remove.

Reply via email to