This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23386] [4.1 Regression] bitmap.c is being miscompiled (VRP)
- 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: 14 Aug 2005 18:02:33 -0000
- Subject: [Bug tree-optimization/23386] [4.1 Regression] bitmap.c is being miscompiled (VRP)
- References: <20050814153712.23386.danglin@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-14 18:02 -------
Here is a testcase which also fail on 64bit targets too:
int f[100];
int g[100];
unsigned char
f1 (int a, int b)
{
__SIZE_TYPE__ ix;
if (a)
return 1;
for (ix = 4; ix--;)
if (f[ix] != g[ix])
return 0;
return 1;
}
int main(void)
{
if (!f1 (0, 2))
__builtin_abort();
return 0;
}
---
--
What |Removed |Added
----------------------------------------------------------------------------
GCC target triplet|any 32bit taget |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23386