This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, spu]: support context-sensitive keywords


>>>>> "Andrew" == Andrew Pinski <Andrew_Pinski@playstation.sony.com> writes:

>> +/* Keep the vector keywords handy for fast comparisons.  */
>> +static tree __vector_keyword;
>> +static tree vector_keyword;

Andrew> I think you need a GTY(()) on those variables, otherwise you will end
Andrew> up with the identifiers getting lost, maybe (I forget when identifiers
Andrew> are GCable, Tom?).

They are GCable any time after the parse_file langhook has returned.
See toplev.c:compile_file().

Thanks for noticing this -- this was the whole reason to move from
hash nodes to identifiers here :)

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]