This is the mail archive of the gcc@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-cvs corrupt


Zack Weinberg <zack@codesourcery.com> writes:

> Neil Booth <neil@daikokuya.co.uk> writes:
> 
> > Zack Weinberg wrote:-
> >> The trouble is that #error causes cpplib's parse_in.errors to be
> >> bumped, but that doesn't propagate back to errorcount until
> >> cpp_finish() is called, from c_common_finish.
> >
> > Merge the diagnostic handlers.
> 
> A good idea, but I'm beginning to worry about cpplib ceasing to be
> useful as a standalone library.  I already have plans for using it
> independently, and there's a project called 'synopsis' that wants
> it too...

Perhaps cpplib could add some callbacks to inform its caller of
errors, and have the caller print the actual message?  A
general-purpose library really shouldn't be dumping stuff to stderr
anyway.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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