This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/24141] [4.1 regression] VRP ICE in compare_name_with_value, at tree-vrp.c:2965
- From: "belyshev at depni dot sinp dot msu dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Sep 2005 10:55:57 -0000
- Subject: [Bug tree-optimization/24141] [4.1 regression] VRP ICE in compare_name_with_value, at tree-vrp.c:2965
- References: <20050930093656.24141.rguenth@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From belyshev at depni dot sinp dot msu dot ru 2005-09-30 10:55 -------
// reduced testcase, compile with -O2. Also, with --disable-checking
// gcc produces wrong code.
void abort (void);
int i;
void g (void)
{
i = 1;
}
void f (int a, int b)
{
int c = 0;
if (a == 0)
c = 1;
if (c)
return;
if (c == 1)
c = 0;
if (b == 0)
c = 1;
if (c)
g ();
}
int main (void)
{
f (1, 0);
if (i != 1)
abort ();
return 0;
}
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-checking, wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2005-09-30 10:55:54
date| |
Summary|VRP ICE in |[4.1 regression] VRP ICE in
|compare_name_with_value, at |compare_name_with_value, at
|tree-vrp.c:2965 |tree-vrp.c:2965
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24141