mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-11 09:40:33 +08:00
trans-array.c (gfc_trans_deferred_array): Use build_int_cst to force like types in comparsion.
* trans-array.c (gfc_trans_deferred_array): Use build_int_cst to force like types in comparsion. From-SVN: r100269
This commit is contained in:
parent
30d2e94365
commit
4c1dd580b3
@ -1,3 +1,8 @@
|
||||
2005-05-27 Steven G. Kargl <kargls@comcast.net>
|
||||
|
||||
* trans-array.c (gfc_trans_deferred_array): Use build_int_cst to force
|
||||
like types in comparsion.
|
||||
|
||||
2005-05-26 Kazu Hirata <kazu@cs.umass.edu>
|
||||
|
||||
* data.c, parse.c, trans-array.c, trans-decl.c,
|
||||
|
@ -4000,7 +4000,8 @@ gfc_trans_deferred_array (gfc_symbol * sym, tree body)
|
||||
deallocate = gfc_array_deallocate (descriptor);
|
||||
|
||||
tmp = gfc_conv_descriptor_data (descriptor);
|
||||
tmp = build2 (NE_EXPR, boolean_type_node, tmp, integer_zero_node);
|
||||
tmp = build2 (NE_EXPR, boolean_type_node, tmp,
|
||||
build_int_cst (TREE_TYPE (tmp), 0));
|
||||
tmp = build3_v (COND_EXPR, tmp, deallocate, build_empty_stmt ());
|
||||
gfc_add_expr_to_block (&block, tmp);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user