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 middle-end/54879] New: gcc/combine.c:12018: warning: comparison always false due to limited range of data type


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

             Bug #: 54879
           Summary: gcc/combine.c:12018: warning: comparison always false
                    due to limited range of data type
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hp@gcc.gnu.org
                CC: jakub@gcc.gnu.org


While looking at results for the patch for PR54860, I accidentally switched
build machines, which exposed a few additional warnings for r192199 apparently
due to the change in host gcc version (from Fedora "gcc version 4.4.3 20100127
(Red Hat 4.4.3-4) (GCC)" to Debian "gcc version 4.4.5 (Debian 4.4.5-8)"):

/tmp/build20121008/gcc/gcc/combine.c: In function 'int count_rtxs(rtx_def*)':
/tmp/build20121008/gcc/gcc/combine.c:12018: warning: comparison always false
due to limited range of data type
/tmp/build20121008/gcc/gcc/combine.c:12027: warning: comparison always false
due to limited range of data type
/tmp/build20121008/gcc/gcc/combine.c:12034: warning: comparison always false
due to limited range of data type

Apparently, the value of GET_RTX_CLASS() changed type, with
combine.c:count_rtxs left wrongly using with the old type.  The enum type
doesn't include '2' and 'c'...

Committer last touching those lines according to "svn ann" CC:ed.


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