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]

Re: [tree-ssa] BIND_EXPR removal


Hello,

> Could you update tree-pretty-print.c to dump the declarations for local
> variables?  After the lowering pass, the dump files don't show local
> declarations anymore.  This seems to be related to your BIND_EXPR
> changes.

commited as obvious.

Zdenek

Index: ChangeLog.tree-ssa
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/ChangeLog.tree-ssa,v
retrieving revision 1.1.2.817
diff -c -3 -p -r1.1.2.817 ChangeLog.tree-ssa
*** ChangeLog.tree-ssa	5 Nov 2003 13:39:21 -0000	1.1.2.817
--- ChangeLog.tree-ssa	5 Nov 2003 16:26:08 -0000
***************
*** 1,5 ****
--- 1,12 ----
  2003-11-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
  
+ 	* diagnostic.h (print_generic_decl): Declare.
+ 	* tree-cfg.c (dump_cfg_function_to_file): Dump variables in
+ 	unexpanded_var_list.
+ 	* tree-pretty-print.c (print_generic_decl): New function.
+ 
+ 2003-11-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
+ 
  	* Makefile.in (gimplify.o): Add function.h dependency.
  	* c-call-graph.c (construct_call_graph): Modify build_tree_cfg call.
  	* gimple-low.c (record_vars): Export.
Index: diagnostic.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/diagnostic.h,v
retrieving revision 1.44.2.22
diff -c -3 -p -r1.44.2.22 diagnostic.h
*** diagnostic.h	28 Sep 2003 06:06:17 -0000	1.44.2.22
--- diagnostic.h	5 Nov 2003 16:26:08 -0000
*************** extern void debug_output_buffer (pretty_
*** 188,193 ****
--- 188,194 ----
  extern int dump_generic_node (pretty_printer *, tree, int, int);
  extern void print_generic_stmt (FILE *, tree, int);
  extern void print_generic_expr (FILE *, tree, int);
+ extern void print_generic_decl (FILE *, tree, int);
  
  extern void debug_generic_expr (tree);
  extern void debug_generic_stmt (tree);
Index: tree-cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-cfg.c,v
retrieving revision 1.1.4.193
diff -c -3 -p -r1.1.4.193 tree-cfg.c
*** tree-cfg.c	5 Nov 2003 13:39:23 -0000	1.1.4.193
--- tree-cfg.c	5 Nov 2003 16:26:08 -0000
*************** dump_cfg_function_to_file (tree fn, FILE
*** 2130,2135 ****
--- 2130,2142 ----
    fprintf (file, ")\n");
  
    fprintf (file, "{\n");
+   if (cfun->unexpanded_var_list)
+     {
+       for (arg = cfun->unexpanded_var_list; arg; arg = TREE_CHAIN (arg))
+ 	print_generic_decl (file, TREE_VALUE (arg), flags | TDF_SLIM);
+       fprintf (file, "\n");
+     }
+ 
    FOR_EACH_BB (bb)
      {
        if (show_bb_headers)
Index: tree-pretty-print.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-pretty-print.c,v
retrieving revision 1.1.2.55
diff -c -3 -p -r1.1.2.55 tree-pretty-print.c
*** tree-pretty-print.c	3 Nov 2003 17:54:04 -0000	1.1.2.55
--- tree-pretty-print.c	5 Nov 2003 16:26:08 -0000
*************** debug_generic_stmt (tree t)
*** 99,104 ****
--- 99,114 ----
    fprintf (stderr, "\n");
  }
  
+ /* Prints declaration DECL to the FILE with details specified by FLAGS.  */
+ void
+ print_generic_decl (FILE *file, tree decl, int flags)
+ {
+   maybe_init_pretty_print (file);
+   dumping_stmts = true;
+   print_declaration (&buffer, decl, 2, flags);
+   pp_flush (&buffer);
+ }
+ 
  /* Print tree T, and its successors, on file FILE.  FLAGS specifies details
     to show in the dump.  See TDF_* in tree.h.  */
  


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