[Patch v2 02/10] type: add c99 variable length array support

Tom Tromey tromey@redhat.com
Mon Dec 16 22:14:00 GMT 2013


>>>>> "Sanimir" == Agovic, Sanimir <sanimir.agovic@intel.com> writes:

Sanimir> In the prototype below I omit any call to copy_type_recursive,
Sanimir> it works by selective re-constructing array and range types. As
Sanimir> c99 vla are quite restrictive this works, but languages with
Sanimir> less restrictive vla implementation (see Fortran vla branch)
Sanimir> need to deep copy the type. Comments are welcome.

For the Fortran changes you may want to introduce a new variant of
copy_type_recursive that just copies the bits you need, and not all the
extraneous stuff like strings.

Tom



More information about the Gdb-patches mailing list