From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29832 invoked by alias); 27 Apr 2010 15:32:20 -0000 Received: (qmail 29818 invoked by uid 22791); 27 Apr 2010 15:32:19 -0000 X-SWARE-Spam-Status: No, hits=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45 X-Spam-Check-By: sourceware.org Received: from mail-pz0-f175.google.com (HELO mail-pz0-f175.google.com) (209.85.222.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Apr 2010 15:32:14 +0000 Received: by pzk5 with SMTP id 5so8916591pzk.14 for ; Tue, 27 Apr 2010 08:32:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.26.28 with SMTP id d28mr2968414wfj.103.1272382332734; Tue, 27 Apr 2010 08:32:12 -0700 (PDT) Received: by 10.151.143.8 with HTTP; Tue, 27 Apr 2010 08:32:10 -0700 (PDT) In-Reply-To: References: <407016140912221000o1c69d392x68607f8f529eaa7d@mail.gmail.com> <4BD70167.6070905@google.com> Date: Tue, 27 Apr 2010 15:46:00 -0000 Message-ID: Subject: Re: plugin event for C/C++ declarations From: Brian Hackett To: Richard Guenther Cc: Diego Novillo , gcc-patches@gcc.gnu.org, Richard Guenther , Jakub Jelinek Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg01687.txt.bz2 I'll put together a patch using an inline function which checks a plugin_loaded_p. Brian On Tue, Apr 27, 2010 at 8:29 AM, Richard Guenther wrote: > Thus, can we have -plugin binary-patch all call sites to NOPs > by some fancy relocation like GNU_IFUNC? =A0Or at least please > have a global variable plugin_loaded_p and wrap the callback > in an inline function. > > Thanks.