From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7779 invoked by alias); 27 Aug 2009 16:51:50 -0000 Received: (qmail 7769 invoked by uid 22791); 27 Aug 2009 16:51:49 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Aug 2009 16:51:43 +0000 Received: from wpaz37.hot.corp.google.com (wpaz37.hot.corp.google.com [172.24.198.101]) by smtp-out.google.com with ESMTP id n7RGpdIE031470 for ; Thu, 27 Aug 2009 17:51:40 +0100 Received: from ewy22 (ewy22.prod.google.com [10.241.103.22]) by wpaz37.hot.corp.google.com with ESMTP id n7RGpavi032578 for ; Thu, 27 Aug 2009 09:51:37 -0700 Received: by ewy22 with SMTP id 22so1430251ewy.28 for ; Thu, 27 Aug 2009 09:51:36 -0700 (PDT) Received: by 10.216.85.147 with SMTP id u19mr725447wee.88.1251391896461; Thu, 27 Aug 2009 09:51:36 -0700 (PDT) Received: from localhost.localdomain.google.com (adsl-71-133-8-30.dsl.pltn13.pacbell.net [71.133.8.30]) by mx.google.com with ESMTPS id x6sm1337145gvf.9.2009.08.27.09.51.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 27 Aug 2009 09:51:35 -0700 (PDT) To: "Alexei I. Adamovich" Cc: gcc@gcc.gnu.org Subject: Re: Help ! Frozen by a comment in gcc/c-common.h! References: <20090827115025.GA7870@adam.botik.ru> From: Ian Lance Taylor Date: Fri, 28 Aug 2009 04:53:00 -0000 In-Reply-To: <20090827115025.GA7870@adam.botik.ru> (Alexei I. Adamovich's message of "Thu\, 27 Aug 2009 15\:50\:25 +0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-08/txt/msg00516.txt.bz2 "Alexei I. Adamovich" writes: > While modifying the C lexer to accommodate it for experimental > C-derived language front-end, I've stumbled across the following > comment in gcc/c-common.h before the "enum rid" definition (still > there in gcc-4.5-20090820 snapshot): > > 42 /* Reserved identifiers. This is the union of all the keywords for C, > 43 C++, and Objective-C. All the type modifiers have to be in one > 44 block at the beginning, because they are used as mask bits. There > 45 are 27 type modifiers; if we add many more we will have to redesign > 46 the mask mechanism. */ > 47 > 48 enum rid > 49 { > 50 /* Modifiers: */ > 51 /* C, in empirical order of frequency. */ > 52 RID_STATIC = 0, > 53 RID_UNSIGNED, RID_LONG, RID_CONST, RID_EXTERN > ... > > Could you please enlighten me -- is the comment still relevant? If so, > where the usage of type modifiers entries in enum rid as mask bits can > be seen in gcc code (or documentation, if applicable)? I suspect that that comment is no longer relevant. At least, I can't seem to find the mask. Perhaps somebody else knows. Ian