Patchwork Improve debug message

login
register
mail settings
Submitter Marek Polacek
Date Nov. 28, 2012, 7:33 p.m.
Message ID <20121128193327.GC26585@redhat.com>
Download mbox | patch
Permalink /patch/202536/
State New
Headers show

Comments

Marek Polacek - Nov. 28, 2012, 7:33 p.m.
As per Eric's suggestiong, this patch makes one debug message more
clear.  Eric, I know you you pre-approved this, but still I'd
appreciate if you could take a look.  Thanks,

2012-11-28  Marek Polacek  <polacek@redhat.com>

	* cprop.c (bypass_block): Improve debug message.


	Marek
Eric Botcazou - Nov. 28, 2012, 10:18 p.m.
> As per Eric's suggestiong, this patch makes one debug message more
> clear.  Eric, I know you you pre-approved this, but still I'd
> appreciate if you could take a look.  Thanks,
> 
> 2012-11-28  Marek Polacek  <polacek@redhat.com>
> 
> 	* cprop.c (bypass_block): Improve debug message.

That's fine, thanks.

Patch

--- gcc/cprop.c.mp	2012-11-28 16:55:03.520375191 +0100
+++ gcc/cprop.c	2012-11-28 20:29:05.664842945 +0100
@@ -1,6 +1,6 @@ 
 /* Global constant/copy propagation for RTL.
    Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
-   2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+   2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -1632,8 +1632,10 @@  bypass_block (basic_block bb, rtx setcc,
 				      "in jump_insn %d equals constant ",
 			   regno, INSN_UID (jump));
 		  print_rtl (dump_file, set->src);
-		  fprintf (dump_file, "\nBypass edge from %d->%d to %d\n",
-			   e->src->index, old_dest->index, dest->index);
+		  fprintf (dump_file, "\n\t     when BB %d is entered from "
+				      "BB %d.  Redirect edge %d->%d to %d.\n",
+			   old_dest->index, e->src->index, e->src->index,
+			   old_dest->index, dest->index);
 		}
 	      change = 1;
 	      removed_p = 1;