------- Comment #5 from rguenth at gcc dot gnu dot org  2009-06-02 10:45 -------
Works fine with rev. 147285, fails with rev. 147953.

Martin - obviously

static inline tree
get_ssa_def_if_simple_copy (tree rhs)
{
  while (TREE_CODE (rhs) == SSA_NAME && !SSA_NAME_IS_DEFAULT_DEF (rhs))
    {
      gimple def_stmt = SSA_NAME_DEF_STMT (rhs);

      if (gimple_assign_single_p (def_stmt))
        rhs = gimple_assign_rhs1 (def_stmt);
    }
  return rhs;
}

doesn't terminate if the condition inside the loop is false.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mjambor at suse dot cz
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Priority|P3                          |P1
   Last reconfirmed|0000-00-00 00:00:00         |2009-06-02 10:45:24
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40323

Reply via email to