[pph] Macro Validation Correction (issue4425041)

Diego Novillo dnovillo@google.com
Mon Apr 18 19:23:00 GMT 2011


On Mon, Apr 18, 2011 at 14:58, Lawrence Crowl <crowl@google.com> wrote:
> On 4/16/11, Diego Novillo <dnovillo@google.com> wrote:
>> On Apr 14, 2011 Lawrence Crowl <crowl@google.com> wrote:
>> > +/* Make sure the bitfield directive_index in include/cpplib.h is large
>> > +   enough to index the entire table.  */
>> > +
>> > +unsigned char too_many_directives_for_bitfield[
>> > +        N_DIRECTIVES <= (1 << CPP_HASHNODE_INDEX_BITS)
>> > +        ? 1 : -1];
>>
>> Heh, I'm not sure what to think of this trick. I think I like
>> it, though.
>
> It is used elsewhere in gcc.  I took that use as permission to
> reuse the technique.

Yeah, it wasn't an objection.  I just find it interesting.  I'm fine
with it, of course.


Diego.



More information about the Gcc-patches mailing list