]> git.ipfire.org Git - thirdparty/gcc.git/commit
gengtype: parse base classes for some GTY-marked types
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 24 Oct 2013 02:10:10 +0000 (02:10 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Thu, 24 Oct 2013 02:10:10 +0000 (02:10 +0000)
commit18aa2b0407fcae29979103a8f9be4652c7d34193
tree47f303b7d339aeffeb3949f863c13b6533cf2f60
parent2f3097a3e288ba16caa19a66e1a48f2f2ffc7a6c
gengtype: parse base classes for some GTY-marked types

2013-10-23  David Malcolm  <dmalcolm@redhat.com>

* gengtype-parse.c (require_without_advance): New.
(type): For GTY-marked types that are not GTY((user)), parse any
base classes, requiring them to be single-inheritance, and not
be templates.  For non-GTY-marked types and GTY((user)),
continue to skip over any C++ inheritance specification.
* gengtype-state.c (state_writer::write_state_struct_type):
Write base class of type (if any).
(read_state_struct_type): Read base class of type (if any).
* gengtype.c (new_structure): Add a "base_class" parameter.
(create_optional_field_): Update for new parameter to
new_structure.
(adjust_field_rtx_def): Likewise.
(adjust_field_tree_exp): Likewise.
* gengtype.h (struct type): Add "base_class" field to the s
union field.
(new_structure): Add "base" parameter.

From-SVN: r204003
gcc/ChangeLog
gcc/gengtype-parse.c
gcc/gengtype-state.c
gcc/gengtype.c
gcc/gengtype.h