This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23046] [4.1 Regression] ICE in set_value_range, at tree-vrp.c:191
- 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: 4 Aug 2005 18:43:24 -0000
- Subject: [Bug tree-optimization/23046] [4.1 Regression] ICE in set_value_range, at tree-vrp.c:191
- References: <20050724081306.23046.dank@kegel.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-04 18:43 -------
Reduced testcase:
enum eumtype { ENUM1, ENUM2 };
void g(const eumtype kind );
void f(long i);
void g(const eumtype kind)
{
if ((kind != ENUM1) && (kind != ENUM2))
f(kind);
}
--- the tree before VRP:
void g(eumtype) (kind)
{
long int kind.0;
<bb 0>:
if (kind_1 > 1) goto <L0>; else goto <L1>;
<L0>:;
kind.0_2 = (long int) kind_1;
f (kind.0_2);
<L1>:;
return;
}
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |phython at gcc dot gnu dot
| |org, dnovillo at gcc dot gnu
| |dot org
Last reconfirmed|2005-08-04 18:31:51 |2005-08-04 18:43:23
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23046