Re: [RFA] Support common C++ declarations inside GTY'd structures

2012-10-12 Thread Laurynas Biveinis
>>> - if (s->u.s.line.file != NULL >>> - || (s->u.s.lang_struct && (s->u.s.lang_struct->u.s.bitmap & >>> bitmap))) >>> + if (s->u.s.lang_struct && (s->u.s.lang_struct->u.s.bitmap & bitmap)) >>> { >>> error_at_line (pos, "duplicate definition of '%s %s'", >>>

Re: [RFA] Support common C++ declarations inside GTY'd structures

2012-10-12 Thread Diego Novillo
On 2012-10-11 13:55 , Laurynas Biveinis wrote: static void -consume_until_semi (bool immediate) +consume_until_eos (void) { - if (immediate && token () != ';') -require (';'); for (;;) switch (token ()) { case ';': advance (); return; - d

Re: [RFA] Support common C++ declarations inside GTY'd structures

2012-10-11 Thread Laurynas Biveinis
> Tested on x86_64. OK for trunk? Looks OK, with some very minor comments and questions below. > static void > -consume_until_semi (bool immediate) > +consume_until_eos (void) > { > - if (immediate && token () != ';') > -require (';'); >for (;;) > switch (token ()) >{ >

[RFA] Support common C++ declarations inside GTY'd structures

2012-10-06 Thread Diego Novillo
This patch combines the changes from http://gcc.gnu.org/ml/gcc-patches/2012-08/msg02016.html with other additions to support C++ inside GTY'd structures. The main changes wrt Aaron's original patch are: - Support for function declarations inside classes. - Support scoping in identifiers. This d