Name |
Last commit
|
Last update |
---|---|---|
.. | ||
Make-lang.in | ||
Makefile.in | ||
ada-tree.def | ||
ada-tree.h | ||
ada.h | ||
config-lang.in | ||
cuintp.c | ||
decl.c | ||
gadaint.h | ||
gigi.h | ||
lang-specs.h | ||
lang.opt | ||
misc.c | ||
targtyps.c | ||
trans.c | ||
utils.c | ||
utils2.c |
* repinfo.adb (List_Component_Layout): Remove superfluous space for zero-sized field. * gcc-interface/ada-tree.h (TYPE_IS_EXTRA_SUBTYPE_P): New macro. * gcc-interface/gigi.h (create_extra_subtype): Declare. * gcc-interface/decl.c (TYPE_ARRAY_SIZE_LIMIT): Likewise. (update_n_elem): New function. (gnat_to_gnu_entity): Use create_extra_subtype to create extra subtypes instead of doing it manually. <E_Array_Type>: Use update_n_elem to compute the maximum size. Use the index type instead of base type for the bounds. Set TYPE_ARRAY_MAX_SIZE of the array to the maximum size. <E_Array_Subtype>: Create an extra subtype using the index type of the base array type for self-referential bounds. Use update_n_elem to compute the maximum size. Set TYPE_ARRAY_MAX_SIZE of the array to the maximum size. (gnat_to_gnu_field): Clear DECL_NONADDRESSABLE_P on discriminants. * gcc-interface/misc.c (gnat_get_alias_set): Return the alias set of the base type for an extra subtype. (gnat_type_max_size): Remove obsolete code. * gcc-interface/trans.c (Attribute_to_gnu): Minor tweak. (can_be_lower_p): Deal with pathological types. * gcc-interface/utils.c (create_extra_subtype): New function. (create_field_decl): Minor tweak. (max_size) <tcc_reference>: Compute a better value by using the extra subtypes on the self-referential bounds. <tcc_binary>: Rewrite. Deal with "negative value" in unsigned types. <tcc_expression>: Likewise. * gcc-interface/utils2.c (compare_arrays): Retrieve the original bounds of the arrays upfront. Swap only if the second length is not constant. Use comparisons on the original bounds consistently for the null tests. (build_binary_op): Use TYPE_IS_EXTRA_SUBTYPE_P macro. (build_allocator): Minor tweak. From-SVN: r268318
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
Make-lang.in | Loading commit data... | |
Makefile.in | Loading commit data... | |
ada-tree.def | Loading commit data... | |
ada-tree.h | Loading commit data... | |
ada.h | Loading commit data... | |
config-lang.in | Loading commit data... | |
cuintp.c | Loading commit data... | |
decl.c | Loading commit data... | |
gadaint.h | Loading commit data... | |
gigi.h | Loading commit data... | |
lang-specs.h | Loading commit data... | |
lang.opt | Loading commit data... | |
misc.c | Loading commit data... | |
targtyps.c | Loading commit data... | |
trans.c | Loading commit data... | |
utils.c | Loading commit data... | |
utils2.c | Loading commit data... |