+2011-01-11 Jeff Law <law@redhat.com>
+
+ * PR tree-optimization/47086
+ * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
+ IVs from statements that might throw.
+
2011-01-10 Jan Hubicka <jh@suse.cz>
PR lto/45375
+2011-01-11 Jeff Law <law@redhat.com>
+
+ * PR tree-optimization/47086
+ * gcc.dg/pr47086.c: New test.
+
2011-01-11 Jason Merrill <jason@redhat.com>
PR c++/46658
/* Induction variable optimizations.
- Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+ Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
This file is part of GCC.
|| contains_abnormal_ssa_name_p (iv->step))
return false;
+ /* If STMT could throw, then do not consider STMT as defining a GIV.
+ While this will suppress optimizations, we can not safely delete this
+ GIV and associated statements, even if it appears it is not used. */
+ if (stmt_could_throw_p (stmt))
+ return false;
+
return true;
}