This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/23046] [4.1 Regression] ICE in set_value_range, at tree-vrp.c:191


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]