decl.c (gnat_to_gnu_entity): Set default alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default alignment on the RETURN type built for the Copy-In Copy-Out mechanism. From-SVN: r158054
This commit is contained in:
parent
55ba23c404
commit
19c8469429
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
|
||||
alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
|
||||
|
||||
2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
|
||||
|
|
|
@ -4062,6 +4062,9 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
|
|||
gcc_assert (TREE_CODE (gnu_return_type) == VOID_TYPE);
|
||||
gnu_return_type = make_node (RECORD_TYPE);
|
||||
TYPE_NAME (gnu_return_type) = get_identifier ("RETURN");
|
||||
/* Set a default alignment to speed up accesses. */
|
||||
TYPE_ALIGN (gnu_return_type)
|
||||
= get_mode_alignment (ptr_mode);
|
||||
has_copy_in_out = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue