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] correct typo in craph's debug output?


This seems like an obvious fix, but I thought I'd run it by the maintainers first since maybe it is written this way for a reason.

cgraph's dumps look like this, which seem wrong to me:

loop_giv_dump 254 insns reachable tree inlinable
  called by :record_giv debug_giv
  calls: print_simple_rtl print_simple_rtl print_simple_rtl fancy_abort
loop_biv_dump 88 insns reachable tree inlinable
  called by :record_biv debug_biv
  calls: print_simple_rtl print_simple_rtl

This one-liner fixes the colon placement giving...

loop_giv_dump 254 insns reachable tree inlinable
  called by: record_giv debug_giv
  calls: print_simple_rtl print_simple_rtl print_simple_rtl fancy_abort
loop_biv_dump 88 insns reachable tree inlinable
  called by: record_biv debug_biv
  calls: print_simple_rtl print_simple_rtl

OK to install?

Kelley Cook
2003-09-18  Kelley Cook  <kelleycook@wideopenwest.com>

	* cgraph.c: Fix typo in debug output.

--- cgraph.c.orig	2003-09-18 10:22:48.662544000 -0400
+++ cgraph.c	2003-09-18 10:23:02.913035200 -0400
@@ -376,7 +376,7 @@
       if (node->global.cloned_times > 1)
 	fprintf (f, " cloned %ix", node->global.cloned_times);
 
-      fprintf (f, "\n  called by :");
+      fprintf (f, "\n  called by: ");
       for (edge = node->callers; edge; edge = edge->next_caller)
 	{
 	  fprintf (f, "%s ", cgraph_node_name (edge->caller));

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