This is the mail archive of the 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: [ast-optimizer-branch] Print trees in C syntax

POP Sebastian wrote:-

> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/tree.h,v
> retrieving revision
> diff -d -u -p -r1.257.2.1 tree.h
> --- tree.h	2001/07/23 09:15:51
> +++ tree.h	2001/12/04 21:02:44
> @@ -2790,6 +2790,12 @@ extern void print_node_brief		PARAMS ((F
>  extern void indent_to			PARAMS ((FILE *, int));
>  #endif
> +/* In c-pretty-print.c */
> +extern void print_c_tree                PARAMS ((FILE*, tree));
> +extern void print_c_node                PARAMS ((FILE*, tree));
> +extern void debug_c_tree                PARAMS ((tree));
> +extern void debug_c_node                PARAMS ((tree));
> +

Is this code intended for all front ends?  If it's only intended for
the C family front ends, this should go in c-common.h.  If it's
intended for all front ends, I would appreciate a name that doesn't
contain a "c-" prefix.

> +
> +static void 
> +dump_c_scope_vars (buffer, scope, spc)
> +     output_buffer *buffer;
> +     tree scope;
> +     HOST_WIDE_INT spc;
> +{

Uncommented function.


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