This patch adds DEBUG_FUNCTION attribute to print_* functions
in genmatch.c

* genmatch.c (print_operand): Add attribute DEBUG_FUNCTION.
  (print_matches): Likewise.
  (decision_tree::print_node): Likewise.
  (decision_tree::print): Likewise.

Thanks and Regards,
Prathamesh
Index: genmatch.c
===================================================================
--- genmatch.c	(revision 212366)
+++ genmatch.c	(working copy)
@@ -407,7 +407,7 @@ struct decision_tree
   static void print_node (dt_node *, FILE *f = stderr, unsigned = 0);
 };
 
-void
+DEBUG_FUNCTION void
 print_operand (operand *o, FILE *f = stderr, bool flattened = false)
 {
   if (o->type == operand::OP_CAPTURE)
@@ -449,7 +449,7 @@ print_operand (operand *o, FILE *f = std
     gcc_unreachable ();
 }
 
-void
+DEBUG_FUNCTION void
 print_matches (struct simplify *s, FILE *f = stderr)
 {
   if (s->matchers.length () == 1)
@@ -841,7 +841,7 @@ decision_tree::insert (struct simplify *
     }            
 }
 
-void
+DEBUG_FUNCTION void
 decision_tree::print_node (dt_node *p, FILE *f, unsigned indent)
 {
   if (p->type == dt_node::DT_NODE)
@@ -878,7 +878,7 @@ decision_tree::print_node (dt_node *p, F
 }
 
 
-void
+DEBUG_FUNCTION void
 decision_tree::print (FILE *f)
 {
   return decision_tree::print_node (root, f);

Reply via email to