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

            Bug ID: 114689
           Summary: [14 Regression] libgcc/config/m68k/fpgnulib.c:305:
                    Suspicious coding ?
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Static analyser cppcheck says:

libgcc/config/m68k/fpgnulib.c:305:37: style: Boolean result is used in bitwise
operation. Clarify expression with parentheses. [clarifyCondition]

Source code is

     mant = mant >> 1 | (mant & 1) | !!sticky;

Perhaps

     mant = (mant >> 1) | (mant & 1) | !!sticky;

was intended. 

This problem doesn't exist in the source code of gcc-13.2

Reply via email to