Commit 3569056b by Eric Botcazou Committed by Eric Botcazou

decl.c (maybe_pad_type): Only generate the XVS parallel type if the padded type…

decl.c (maybe_pad_type): Only generate the XVS parallel type if the padded type has a variable size.

	* decl.c (maybe_pad_type): Only generate the XVS parallel type if
	the padded type has a variable size.

From-SVN: r134443
parent ed3444e9
2008-04-18 Eric Botcazou <ebotcazou@adacore.com> 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
* decl.c (maybe_pad_type): Only generate the XVS parallel type if
the padded type has a variable size.
2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
* decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
target pointer mechanism as soon as the size is not constant. target pointer mechanism as soon as the size is not constant.
...@@ -5683,11 +5683,12 @@ maybe_pad_type (tree type, tree size, unsigned int align, ...@@ -5683,11 +5683,12 @@ maybe_pad_type (tree type, tree size, unsigned int align,
/* Unless debugging information isn't being written for the input type, /* Unless debugging information isn't being written for the input type,
write a record that shows what we are a subtype of and also make a write a record that shows what we are a subtype of and also make a
variable that indicates our size, if variable. */ variable that indicates our size, if still variable. */
if (TYPE_NAME (record) if (TYPE_NAME (record)
&& AGGREGATE_TYPE_P (type) && AGGREGATE_TYPE_P (type)
&& (TREE_CODE (TYPE_NAME (type)) != TYPE_DECL && TREE_CODE (orig_size) != INTEGER_CST
|| !DECL_IGNORED_P (TYPE_NAME (type)))) && !(TREE_CODE (TYPE_NAME (type)) == TYPE_DECL
&& DECL_IGNORED_P (TYPE_NAME (type))))
{ {
tree marker = make_node (RECORD_TYPE); tree marker = make_node (RECORD_TYPE);
tree name = TYPE_NAME (record); tree name = TYPE_NAME (record);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment