trans.c (build_return_expr): Use void_type_node for MODIFY_EXPR.
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 11 Sep 2011 18:28:05 +0000 (18:28 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 11 Sep 2011 18:28:05 +0000 (18:28 +0000)
commitd8e38554672516173980b6f245781ef36767780a
tree687bf8a11600a3aefc37f9c57880e09c771778f0
parentbf0b8cbee52bf89f558d515a05b2fa5d03e9080d
trans.c (build_return_expr): Use void_type_node for MODIFY_EXPR.

* gcc-interface/trans.c (build_return_expr): Use void_type_node for
MODIFY_EXPR.
* gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Assert that
the result type is null if ENABLE_CHECKING.  Set operation_type at the
end unconditionally if not set in the previous cases.
Use build2 and void_type_node for MODIFY_EXPR.
(build_allocator): Use NULL_TREE for MODIFY_EXPR.

From-SVN: r178761
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/ada/gcc-interface/utils2.c