This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/22236] New: [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:36:23 -0000
- Subject: [Bug tree-optimization/22236] New: [4.1 Regression] wrong code for casts and scev
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following should not abort but does at -O3.
void abort(void);
void
foo (signed char a)
{
if (a - 0x7F > 1)
abort();
}
int main()
{
unsigned char b;
for(b = 0;b <0xFF;b++)
foo (b);
}
--
Summary: [4.1 Regression] wrong code for casts and scev
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Keywords: wrong-code
Severity: critical
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22236