Re: [rfa/Ada] Restructure fixed array range fall-back to remove builtin types

Ulrich Weigand
2009-06-29T17:29:45Z

Joel Brobecker wrote:
> > * ada-lang.c (to_fixed_range_type): Add ORIG_TYPE argument.
> > Fall back to orig_type as index type if symbol lookup fails.
> > Allocate result types from ORIG_TYPE's objfile.
> > (ada_array_bound_from_type, to_fixed_array_type,
> > ada_evaluate_subexp): Pass original index type to
> > to_fixed_range_type. Do not pass objfile.
> >
> > * ada-typeprint.c (print_range_type_named): Add ORIG_TYPE argument.
> > Fall back to orig_type as index type if symbol lookup fails.
> > (print_array_type, ada_print_type): Pass original index type
> > to print_range_type_named.
>
> This makes sense to me, and I verified that you handle the case of
> array index types that are range types. So OK.

Checked in.

Thanks,
Ulrich

--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com