Re: [PATCH v2 3/4] Handle simple inheritance in gengtype.

2013-10-28 Thread David Malcolm
On Tue, 2013-10-15 at 12:58 -0600, Jeff Law wrote: [...] > This is OK. Thanks; committed to trunk as r204146. (I was holding off until approval of the robustification followup, which you've now approved, as [1]). Dave [1] http://gcc.gnu.org/ml/gcc-patches/2013-10/msg02330.html

[PATCH v2 3/4] Handle simple inheritance in gengtype.

2013-10-15 Thread Jeff Law
Treat GTY structs that have a "desc" as being the root of an inheritance hierarchy. Generate a switch on desc within the marking function with cases for each subclass, visiting all fields of the type (including inherited ones). Don't create marking functions for subclasses, instead using the bas

[PATCH v2 3/4] Handle simple inheritance in gengtype.

2013-09-24 Thread David Malcolm
Treat GTY structs that have a "desc" as being the root of an inheritance hierarchy. Generate a switch on desc within the marking function with cases for each subclass, visiting all fields of the type (including inherited ones). Don't create marking functions for subclasses, instead using the base