[PATCH v2 1/4] Ignore access-control keywords when parsing fields.

Jeff Law law@redhat.com
Tue Oct 15 18:58:00 GMT 2013


On 09/24/13 11:49, David Malcolm wrote:
> Classes containing access-control keywords such as "public:"
> confuse struct_field_seq, leading it to call consume_until_eos
> i.e. ignore text until after the next semicolon.
>
> This leads to the first field after an access-control keyword
> being ignored by gengtype.  This can be seen in:
>    http://gcc.gnu.org/ml/gcc-patches/2013-09/msg01532.html
> where the autogenerated marking function erroneously omitted the
> traversal of the "callees" field of cgraph_node *.
>
> This patch fixes up struct_field_seq to gracefully ignore such
> keywords, thus fixing gengtype so that it does not erroneouly omit
> fields of such a class.
>
> 	* gengtype-parse.c (struct_field_seq): Ignore access-control
> 	keywords ("public:" etc).
OK.
Jeff



More information about the Gcc-patches mailing list