http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50355

             Bug #: 50355
           Summary: Comparison is always true in alpha config code
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: dcb...@hotmail.com


I just tried the cppcheck tool over the source code of
gcc 4.7 snapshot 20110910.

The tool said

[gcc/config/alpha/alpha.c:5059]: (style) Mismatching comparison, the result is
always true

The source code is

      && (INTVAL (x) & 7) != 8)

Maybe the 8 should be changed to some other integer constant ?

Reply via email to