Commit 8fafe21d by Olivier Hainque Committed by Eric Botcazou

re PR ada/22418 (Ada produces mis-match (non compatible) types in MODIFY_EXPR)

	PR ada/22418
	* decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
	as we create them to store a size in bits.

From-SVN: r105743
parent 552725e3
2005-09-21 Olivier Hainque <hainque@adacore.com>
PR ada/22418
* decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
as we create them to store a size in bits.
2005-10-21 Eric Botcazou <ebotcazou@adacore.com> 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
PR ada/21937 PR ada/21937
...@@ -12,7 +18,7 @@ ...@@ -12,7 +18,7 @@
of manually building the RETURN_EXPR tree. of manually building the RETURN_EXPR tree.
(call_to_gnu): Pass MODIFY_EXPR through build_binary_op. (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
(gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
build_binary_op for the "target pointer" case. Use build_return_expr build_binary_op for the "target pointer" case. Use build_return_expr
instead of manually building the RETURN_EXPR tree. instead of manually building the RETURN_EXPR tree.
2005-09-16 Laurent GUERBY <laurent@guerby.net> 2005-09-16 Laurent GUERBY <laurent@guerby.net>
......
...@@ -4985,7 +4985,7 @@ maybe_pad_type (tree type, tree size, unsigned int align, ...@@ -4985,7 +4985,7 @@ maybe_pad_type (tree type, tree size, unsigned int align,
if (size && TREE_CODE (size) != INTEGER_CST && definition) if (size && TREE_CODE (size) != INTEGER_CST && definition)
create_var_decl (concat_id_with_name (name, "XVZ"), NULL_TREE, create_var_decl (concat_id_with_name (name, "XVZ"), NULL_TREE,
sizetype, TYPE_SIZE (record), false, false, false, bitsizetype, TYPE_SIZE (record), false, false, false,
false, NULL, gnat_entity); false, NULL, gnat_entity);
} }
......
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