From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8732 invoked by alias); 27 Apr 2010 15:50:54 -0000 Received: (qmail 8718 invoked by uid 22791); 27 Apr 2010 15:50:53 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SARE_MSGID_LONG45,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Apr 2010 15:50:48 +0000 Received: from kpbe15.cbf.corp.google.com (kpbe15.cbf.corp.google.com [172.25.105.79]) by smtp-out.google.com with ESMTP id o3RFok7D032507 for ; Tue, 27 Apr 2010 08:50:46 -0700 Received: from pwj7 (pwj7.prod.google.com [10.241.219.71]) by kpbe15.cbf.corp.google.com with ESMTP id o3RFoiiw009823 for ; Tue, 27 Apr 2010 08:50:45 -0700 Received: by pwj7 with SMTP id 7so13677010pwj.2 for ; Tue, 27 Apr 2010 08:50:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.141.14.19 with SMTP id r19mr6123740rvi.255.1272383443579; Tue, 27 Apr 2010 08:50:43 -0700 (PDT) Received: by 10.141.108.16 with HTTP; Tue, 27 Apr 2010 08:50:43 -0700 (PDT) In-Reply-To: References: <407016140912221000o1c69d392x68607f8f529eaa7d@mail.gmail.com> <4BD70167.6070905@google.com> Date: Tue, 27 Apr 2010 16:00:00 -0000 Message-ID: Subject: Re: plugin event for C/C++ declarations From: Diego Novillo To: Richard Guenther Cc: Brian Hackett , Richard Guenther , gcc-patches@gcc.gnu.org, Jakub Jelinek Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes 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 X-SW-Source: 2010-04/txt/msg01691.txt.bz2 On Tue, Apr 27, 2010 at 11:46, Richard Guenther wrote: > On Tue, 27 Apr 2010, Brian Hackett wrote: > >> I'll put together a patch using an inline function which checks a >> plugin_loaded_p. > > Thanks. =C2=A0It should also be completely optimized out if > ENABLE_PLUGIN is not #defined. =C2=A0I see it is currently not, ugh. Good idea. That would completely remove all plugin-related predicates from common code paths. Just to be clear, you're thinking of this? #if defined ENABLE_PLUGIN static inline bool plugin_enabled_p() { return flag_plugin; } #else static inline bool plugin_enabled_p() { return false; } #endif Diego.