]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR debug/46258
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Nov 2010 04:27:24 +0000 (04:27 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Nov 2010 04:27:24 +0000 (04:27 +0000)
* tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
debug stmts.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167162 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-cfg.c

index 222af4d77157bf08cb8aec10390bfbb27b4fb8a2..6c85de4fdcd93fb6aa75c2464abae9f6ff412b7d 100644 (file)
@@ -1,3 +1,9 @@
+2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
+
+       PR debug/46258
+       * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
+       debug stmts.
+
 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
 
        * toplev.c (finalize): Add no_backend parameter.  Don't finish
index 0745a681347a09327091dd99b1c1eb919b678ef3..7944f8c78098432034738d0aa6d53ff05d802410 100644 (file)
@@ -1570,7 +1570,7 @@ replace_uses_by (tree name, tree val)
          size_t i;
 
          fold_stmt_inplace (stmt);
-         if (cfgcleanup_altered_bbs)
+         if (cfgcleanup_altered_bbs && !is_gimple_debug (stmt))
            bitmap_set_bit (cfgcleanup_altered_bbs, gimple_bb (stmt)->index);
 
          /* FIXME.  This should go in update_stmt.  */