This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ast-optimizer-branch] Print trees in C syntax
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- To: POP Sebastian <m1sp at csc dot liv dot ac dot uk>
- Cc: Gabriel Dos Reis <gdr at codesourcery dot com>, gcc-patches at gcc dot gnu dot org,dnovillo at redhat dot com
- Date: Tue, 4 Dec 2001 21:56:00 +0000
- Subject: Re: [ast-optimizer-branch] Print trees in C syntax
- References: <22136.1003775535@localhost.localdomain> <20011122225632.A30650@tornado.cygnus.com> <20011123135939.A12802@linux18.lxfarm.csc.liv.ac.uk> <1006552543.16583.0.camel@tornado> <20011126164523.A17664@linux18.lxfarm.csc.liv.ac.uk> <20011126132433.G19823@redhat.com> <flzo581jry.fsf@riz.cmla.ens-cachan.fr> <20011204213132.B17237@linux18.lxfarm.csc.liv.ac.uk>
POP Sebastian wrote:-
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/tree.h,v
> retrieving revision 1.257.2.1
> diff -d -u -p -r1.257.2.1 tree.h
> --- tree.h 2001/07/23 09:15:51 1.257.2.1
> +++ 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.
Neil.