This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [Patch v2 02/10] type: add c99 variable length array support
- From: Tom Tromey <tromey at redhat dot com>
- To: "Agovic\, Sanimir" <sanimir dot agovic at intel dot com>
- Cc: "gdb-patches\ at sourceware dot org" <gdb-patches at sourceware dot org>, "Boell\, Keven" <keven dot boell at intel dot com>
- Date: Mon, 16 Dec 2013 15:14:11 -0700
- Subject: Re: [Patch v2 02/10] type: add c99 variable length array support
- Authentication-results: sourceware.org; auth=none
- References: <1385044223-24650-1-git-send-email-sanimir dot agovic at intel dot com> <1385044223-24650-3-git-send-email-sanimir dot agovic at intel dot com> <87y54g9nri dot fsf at fleche dot redhat dot com> <0377C58828D86C4588AEEC42FC3B85A7176CA040 at IRSMSX105 dot ger dot corp dot intel dot com>
>>>>> "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