> 2005-11-14 Thomas Quinot <qui...@adacore.com> > Olivier Hainque <hain...@adacore.com> > Eric Botcazou <ebotca...@adacore.com> > ... > (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, > ALIGN SIZE and SIZE_UNIT which we need for later back-annotations. > > I don't understand the reference to "back-annotations" so I don't really > know if this need was meanwhile solved differently, or if it's still > necessary. As said, there are no testcases in GCC (or in the Ada compiler > itself) that would exhibit any problem with that setup removed.
Gigi back-annotates the nodes of the Ada part of the front-end with information about the layout of objects. This is used by the -gnatR? options for example. I think this line is now obsolete because of: /* Back-annotate Esize and Alignment of the object if not already known. Note that we pick the values of the type, not those of the object, to shield ourselves from low-level platform-dependent adjustments like alignment promotion. This is both consistent with all the treatment above, where alignment and size are set on the type of the object and not on the object directly, and makes it possible to support all confirming representation clauses. */ annotate_object (gnat_entity, TREE_TYPE (gnu_decl), gnu_object_size, used_by_ref, false); > * gcc-interface/utils.c (create_var_decl_1): Remove call to > expand_decl. OK, thanks. -- Eric Botcazou