front-end: can I remove 'dummy' extra code - keep front-end coding very simple

2008-09-11 Thread Lemaitre Laurent-R29173
to:[EMAIL PROTECTED] > Sent: Sunday, September 07, 2008 5:45 PM > To: Lemaitre Laurent-R29173 > Cc: gcc@gcc.gnu.org > Subject: Re: front-end: compilation fails - how to fix 'use > poisoned USE_MAPPED_LOCATION' > > >>>>> "Laurent" == Lemai

front-end: compilation fails - how to fix 'use poisoned USE_MAPPED_LOCATION'

2008-09-07 Thread Lemaitre Laurent-R29173
Hi All, I am building a new gcc front-end based on the treelang example. I recently updated my gcc local SVN repository. When I compile my front-end I get the following errors: ../../svn/gcc/laurent/lex.l:6:8: error: attempt to use poisoned "USE_MAPPED_LOCATION" ../../svn/gcc/laurent/lex.l:26:8: er

treelang: can we replace 'unsigned char *chars' by 'char *chars'?

2007-08-15 Thread Lemaitre Laurent-r29173
Hi All, In file treelang.h structure token_part is defined as follows: struct token_part GTY(()) { location_t location; unsigned int charno; unsigned int length; /* The value. */ const unsigned char *chars; <-- HERE }; 'unsigned char *chars' is used instead of just 'char *chars'. Is-the