]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/52376 (ICE in lto_input_tree_ref, at lto-streamer-in.c:266...
authorJakub Jelinek <jakub@redhat.com>
Mon, 27 Feb 2012 15:04:28 +0000 (16:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 27 Feb 2012 15:04:28 +0000 (16:04 +0100)
PR tree-optimization/52376
* ipa-split.c (split_function): Ignore CLOBBER stmts.

From-SVN: r184600

gcc/ChangeLog
gcc/ipa-split.c

index abc17a18057332ae283dbd2b599a97e053c3dc1b..1a9e0f988cf43c7decdc235d8febd3091de5e660 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-27  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/52376
+       * ipa-split.c (split_function): Ignore CLOBBER stmts.
+
 2012-02-27  Stuart Henderson  <shenders@gcc.gnu.org>
 
        * ifcvt.c (noce_get_condition): Check condition variable is not
index cb35150ba8a74507895ac7e204788c19345ea8cb..9dddf393fa781ff8ccc1ad1b7a1b3bbfbdd34f18 100644 (file)
@@ -1300,7 +1300,8 @@ split_function (struct split_point *split_point)
                            gimple_return_set_retval (gsi_stmt (bsi), retval);
                            break;
                          }
-                       else if (gimple_code (gsi_stmt (bsi)) == GIMPLE_ASSIGN)
+                       else if (gimple_code (gsi_stmt (bsi)) == GIMPLE_ASSIGN
+                                && !gimple_clobber_p (gsi_stmt (bsi)))
                          {
                            gimple_assign_set_rhs1 (gsi_stmt (bsi), retval);
                            break;