This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/22236] [4.1 Regression] wrong code for casts and scev
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jun 2005 20:59:25 -0000
- Subject: [Bug tree-optimization/22236] [4.1 Regression] wrong code for casts and scev
- References: <20050629203622.22236.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-29 20:59 -------
Here is a testcase which will fail even after the patch for 14490:
void abort(void);
static inline void
foo (signed char a)
{
int b = a - 0x7F;
if (b > 1)
abort();
}
int main()
{
unsigned char b;
for(b = 0;b <0xFF;b++)
foo (b);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22236