This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help ! Frozen by a comment in gcc/c-common.h!
- From: Ian Lance Taylor <iant at google dot com>
- To: "Alexei I. Adamovich" <lexa at adam dot botik dot ru>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 27 Aug 2009 09:51:30 -0700
- Subject: Re: Help ! Frozen by a comment in gcc/c-common.h!
- References: <20090827115025.GA7870@adam.botik.ru>
"Alexei I. Adamovich" <lexa@adam.botik.ru> 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