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: [ast-optimizer-branch] Print trees in C syntax


On Tue, 4 Dec 2001, POP Sebastian wrote:

> On Tue, Nov 27, 2001 at 01:27:13PM +0100, Gabriel Dos Reis wrote:
> > What about:
> >   1) creating a new file -- say c-pretty-print.c
> That was the simplest step.
> 
> >   2) move some bits from cp/errors.c into c-pretty-print.c
> Hmm, I think I'll keep the big switch and avoid working with small specialized functions.
> There're lot of interesting things in cp/error.c (like the handling template names, ...),
> but I need some more time to finish...

If making the diagnostic formatting work for both C and C++, see also the
discussion in c/1027, and in particular take care of the cases where the
style of output for C and C++ should be different.

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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