From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Patch: etags -vs- GCC sources Date: Sun, 03 Feb 2008 23:53:47 -0500 Message-ID: <87ejbtmiec.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202100863 15460 80.91.229.12 (4 Feb 2008 04:54:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Feb 2008 04:54:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 04 05:54:44 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JLtLv-0002vX-41 for ged-emacs-devel@m.gmane.org; Mon, 04 Feb 2008 05:54:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLtLT-0000Co-8g for ged-emacs-devel@m.gmane.org; Sun, 03 Feb 2008 23:54:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JLtLO-00008j-7M for emacs-devel@gnu.org; Sun, 03 Feb 2008 23:54:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JLtLM-00005b-Nq for emacs-devel@gnu.org; Sun, 03 Feb 2008 23:54:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLtLM-00005C-Cy for emacs-devel@gnu.org; Sun, 03 Feb 2008 23:54:08 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JLtLM-00027Y-GL for emacs-devel@gnu.org; Sun, 03 Feb 2008 23:54:08 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 996D84E489; Sun, 3 Feb 2008 23:53:47 -0500 (EST) In-Reply-To: (Tom Tromey's message of "Wed\, 06 Jun 2007 13\:58\:08 -0600") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.90 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88132 Archived-At: Tom Tromey writes: > GCC marks some global variables with 'GTY'. This is defined to expand > to nothing when compiling, but a separate tool uses these markers to > generate information about roots for the garbage collector. > > etags doesn't know what to do with these markers and consequently many > tags are not found when running etags on GCC. Here's an example of a > definition from g++ that is not found by etags: > > static GTY (()) cp_parser *the_parser; > > The appended patch changes etags to treat GTY as a synonym for > __attribute__. This seems to work for me. I spot-checked it by > looking for several tags which I previously could not find. Sorry, this one seems to have been lost in the pile. No one seems to have objected, so I committed it to the trunk.