From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16452 invoked by alias); 1 Aug 2014 02:18:12 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 16072 invoked by uid 89); 1 Aug 2014 02:18:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtp.mozilla.org Received: from mx1.corp.phx1.mozilla.com (HELO smtp.mozilla.org) (63.245.216.69) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 01 Aug 2014 02:18:09 +0000 Received: from tsaunders-iceball.corp.tor1.mozilla.com (unknown [64.213.68.131]) (Authenticated sender: tsaunders@mozilla.com) by mx1.mail.corp.phx1.mozilla.com (Postfix) with ESMTPSA id E5111F2263; Thu, 31 Jul 2014 19:18:06 -0700 (PDT) Date: Fri, 01 Aug 2014 02:18:00 -0000 From: Trevor Saunders To: Tom Tromey Cc: Richard Biener , Jeff Law , GCC Patches Subject: Re: [PATCH 5/5] add libcc1 Message-ID: <20140801021621.GC1119@tsaunders-iceball.corp.tor1.mozilla.com> References: <1400254001-12038-1-git-send-email-tromey@redhat.com> <87oayx4l0x.fsf@fleche.redhat.com> <87bntobp1f.fsf@fleche.redhat.com> <53D9CA7B.3040709@redhat.com> <87bns5s5op.fsf@fleche.redhat.com> <20140731194304.GA1119@tsaunders-iceball.corp.tor1.mozilla.com> <874mxxs3vy.fsf@fleche.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874mxxs3vy.fsf@fleche.redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00004.txt.bz2 On Thu, Jul 31, 2014 at 01:51:45PM -0600, Tom Tromey wrote: > >>>>> "Trevor" == Trevor Saunders writes: > > Trevor> the plugin part seems fine, but I do find my self wondering if there's a > Trevor> better way of doing the hooks into C, if they can be more genrally > Trevor> useful. > > There's just one now, the binding oracle. ah, that seems reasonable enough. > (There used to be two but we reimplemented the second one by overriding > a langhook from the plugin.) hm, I think langhooks should eventually become an interface with virtual functions to help seperate front ends, and that may be interesting with plugins that over ride lang hooks from the front end, but we need to cross that bridge anyway I guess. > The binding oracle could perhaps be redone as an ordinary plugin event. > It didn't seem that worthwhile to me, but if someone else has a use, it > seems doable. > > Trevor> out of process seems very reasonable, but I do hope we'll fix the > Trevor> crashes since there's any number of other uses for cc1 as a library. > > The ones I recall were all things like the plugin making a tree > incorrectly. This could still be an issue but it is one unlikely to be > hit in ordinary uses of the compiler. I agree any such things are bugs > though. Then that seems fine. So as far as I'm concerned please lets go forward with this and clean up later as needed. Trev > > Tom