This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/21643] GCC fails to merge ranges in comparison.
- From: "trt at acm dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 May 2005 17:28:07 -0000
- Subject: [Bug tree-optimization/21643] GCC fails to merge ranges in comparison.
- References: <20050518123222.21643.dwmw2@infradead.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From trt at acm dot org 2005-05-18 17:28 -------
Here is a equivalent case that gcc also misses (but beyond scope of
fold-const.c). By the way, since there is a missing final return, can't gcc just
simplify all three functions into "return 1;" :-)
int fish3(unsigned char c)
{
if (c =='"') return 1;
if (c == 0x20) return 1;
if (c < 0x20) return 1;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21643