This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Print statement who's gimple_bb is set to a wrong BB


: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;
 	    }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]