From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19272 invoked by alias); 22 Dec 2009 19:46:07 -0000 Received: (qmail 19258 invoked by uid 22791); 22 Dec 2009 19:46:05 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_HELO_PASS,SPF_PASS 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, 22 Dec 2009 19:46:01 +0000 Received: from kpbe14.cbf.corp.google.com (kpbe14.cbf.corp.google.com [172.25.105.78]) by smtp-out.google.com with ESMTP id nBMJjxou007077 for ; Tue, 22 Dec 2009 11:46:00 -0800 Received: from qyk40 (qyk40.prod.google.com [10.241.83.168]) by kpbe14.cbf.corp.google.com with ESMTP id nBMJilMr018863 for ; Tue, 22 Dec 2009 11:45:58 -0800 Received: by qyk40 with SMTP id 40so3130158qyk.22 for ; Tue, 22 Dec 2009 11:45:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.11.215 with SMTP id u23mr4020981qcu.91.1261511157356; Tue, 22 Dec 2009 11:45:57 -0800 (PST) In-Reply-To: <407016140912221000o1c69d392x68607f8f529eaa7d@mail.gmail.com> References: <407016140912221000o1c69d392x68607f8f529eaa7d@mail.gmail.com> Date: Tue, 22 Dec 2009 21:01:00 -0000 Message-ID: Subject: Re: plugin event for C/C++ declarations From: Diego Novillo To: Brian Hackett Cc: gcc-patches@gcc.gnu.org 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: 2009-12/txt/msg01045.txt.bz2 On Tue, Dec 22, 2009 at 13:00, Brian Hackett wrote: > Hi, this patch adds a new plugin event FINISH_DECL, which is invoked > at every finish_decl in the C and C++ frontends. =C2=A0Previously there d= id > not seem to be a way for a plugin to see the definition for a global > that is never used in the input file, or the initializer for a global > which is declared before a function but defined after. =C2=A0This event > isn't restricted to just globals though, but also locals, fields, and > parameters (C frontend only). Thanks for your patch. This will be great to fix http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D41757 but we need to wait for your copyright assignment to go through before we can accept it. Thanks. Diego.