aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2010-11-26 04:27:24 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2010-11-26 04:27:24 +0000
commit4314b5fcf8cdac3c6cccdb71e2788a496bf3f148 (patch)
tree5238a31f95b1a735b58732165e90b33501eb233a /gcc
parent5715dafb8ac141afa3bd963f6110b32b69e2c691 (diff)
downloadgcc-4314b5fcf8cdac3c6cccdb71e2788a496bf3f148.zip
gcc-4314b5fcf8cdac3c6cccdb71e2788a496bf3f148.tar.gz
gcc-4314b5fcf8cdac3c6cccdb71e2788a496bf3f148.tar.bz2
re PR debug/46258 (gcc.dg/tree-ssa/pr23820.c: -fcompare-debug failure with -O3 -ffloat-store)
PR debug/46258 * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on debug stmts. From-SVN: r167162
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-cfg.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 222af4d..6c85de4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
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
passes when preprocessing only. Adjust...
(do_compile): ... caller.
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 0745a68..7944f8c 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -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. */