This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Print statement who's gimple_bb is set to a wrong BB
- From: Bernhard Reutner-Fischer <rep dot dot dot nop at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: rep dot dot dot nop at gmail dot com
- Date: Fri, 5 Jun 2009 21:25:07 +0200
- Subject: [PATCH] Print statement who's gimple_bb is set to a wrong BB
- References: <63213a79c5a038d6b53d8ab38d547b269955252f.1244122541.git.rep.dot.nop@gmail.com>
:ADDPATCH gcc:
* tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
(verify_stmts): Print statement who's gimple_bb is set to a wrong BB
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
gcc/ChangeLog | 5 +++++
gcc/tree-cfg.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 71930e9..8cd7fd9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2009-06-04 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
+ * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
+ (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
+
+2009-06-04 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
+
* errors.c (internal_error): Commentary typo fix.
* gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
* tree-ssa-pre.c: Ditto.
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 875dd8e..746ef6c 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -1456,7 +1456,7 @@ gimple_merge_blocks (basic_block a, basic_block b)
/* Return the one of two successors of BB that is not reachable by a
- reached by a complex edge, if there is one. Else, return BB. We use
+ complex edge, if there is one. Else, return BB. We use
this in optimizations that use post-dominators for their heuristics,
to catch the cases in C++ where function calls are involved. */
@@ -4338,6 +4338,7 @@ verify_stmts (void)
if (gimple_bb (stmt) != bb)
{
error ("gimple_bb (stmt) is set to a wrong basic block");
+ debug_gimple_stmt (stmt);
err |= true;
}