From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27285 invoked by alias); 6 Jan 2003 22:54:42 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 27278 invoked from network); 6 Jan 2003 22:54:41 -0000 Received: from unknown (HELO desire.geoffk.org) (12.235.56.190) by 209.249.29.67 with SMTP; 6 Jan 2003 22:54:41 -0000 Received: (from geoffk@localhost) by desire.geoffk.org (8.11.6/8.11.6) id h06MsRH03117; Mon, 6 Jan 2003 14:54:27 -0800 X-Authentication-Warning: desire.geoffk.org: geoffk set sender to geoffk@geoffk.org using -f To: Zack Weinberg Cc: Diego Novillo , Phil Edwards , Andreas Jaeger , gcc@gcc.gnu.org Subject: Re: tree-ssa-cvs corrupt References: <20030103162912.GA12816@tornado.toronto.redhat.com> <20030103193535.A13114@disaster.jaj.com> <87hecoxdze.fsf@egil.codesourcery.com> <20030105202708.GA11893@tornado.toronto.redhat.com> <20030105210544.GA18414@daikokuya.co.uk> <8765t342qy.fsf@egil.codesourcery.com> <20030105230701.GA19498@daikokuya.co.uk> <87smw7gpkp.fsf@egil.codesourcery.com> From: Geoff Keating Date: Mon, 06 Jan 2003 22:57:00 -0000 In-Reply-To: <87smw7gpkp.fsf@egil.codesourcery.com> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-01/txt/msg00303.txt.bz2 Zack Weinberg writes: > Neil Booth 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