[ast-optimizer-branch] Pretty print (3/5)
Diego Novillo
dnovillo@redhat.com
Fri Mar 1 15:56:00 GMT 2002
On Thu, 28 Feb 2002, Sebastian Pop wrote:
> 2002-02-28 Sebastian Pop <s.pop@laposte.net>
>
> * c-pretty-print.c (dump_c_tree): Declare it extern.
> (dump_c_node): Declare it extern.
> (dump_c_scope_vars): Deleted, some code moved in print_declaration ().
> (print_declaration): New function.
> (print_function_decl): New function.
> (print_struct_decl): New function.
> (INDENT_PRINT_C_NODE): Deleted.
> (INDENT): New macro.
> (NIY): Define the macro body in a block.
> (dump_c_node): Add dumping for TREE_PURPOSE operand in TREE_LIST.
> [VOID|INTEGER|REAL|COMPLEX|VECTOR|ENUMERAL|BOOLEAN|CHAR]_TYPE nodes :
> insert some code from print-tree.c:print_node_brief () in order to
> stabilise the type printing.
> [RECORD|UNION]_TYPE nodes : don't print their contents by default,
> move the existing code in print_struct_decl ().
> [POSTDECREMENT|POSTINCREMENT]_EXPR : print the operand in post postion.
> [MIN|MAX|ABS]_EXPR : New code for printing these nodes.
> FOR_STMT : don't print the FOR_BODY if it is not present.
> RETURN_STMT : don't print the return expression for a void function.
> ASM_STMT : New code for printing this node.
> SCOPE_STMT : use print_declaration instead of dump_c_scope_vars.
> COMPOUND_LITERAL_EXPR : add the node as not implemented yet.
> (op_prio): Fix switch indent.
> Add node EXPR_WITH_FILE_LOCATION with priority 16.
> (op_symbol): Fix switch indent.
>
Installed. Thanks.
Diego.
More information about the Gcc-patches
mailing list