aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-const.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-05-04 13:18:34 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-05-04 13:18:34 +0000
commitdf09d1d51c9d0a5e8df630870b51dd96bcdc2325 (patch)
tree7edd68ae3ca4afd68e43a1be0427b04cd892f89c /gcc/fortran/trans-const.c
parentfdabf26955aeaf884a8824d376b56e00effa7485 (diff)
downloadgcc-df09d1d51c9d0a5e8df630870b51dd96bcdc2325.zip
gcc-df09d1d51c9d0a5e8df630870b51dd96bcdc2325.tar.gz
gcc-df09d1d51c9d0a5e8df630870b51dd96bcdc2325.tar.bz2
trans-array.c (gfc_trans_array_constructor_value): Use size_int for bounds of range types.
2011-05-04 Richard Guenther <rguenther@suse.de> * trans-array.c (gfc_trans_array_constructor_value): Use size_int for bounds of range types. (gfc_trans_array_constructor_value): Use size_type_node for memcpy argument. * trans-common.c (build_field): Use gfc_charlen_type_node for lengths. * trans-openmp.c (gfc_trans_omp_clauses): Do not pass NULL as type to build_int_cst. * trans-const.c (gfc_build_string_const): Use size_int for bounds of range types. (gfc_build_wide_string_const): Likewise. * trans-stmt.c (gfc_trans_label_assign): Use gfc_charlen_type_node for lengths. (gfc_trans_character_select): Likewise. (gfc_trans_character_select): Do not pass NULL as type to build_int_cst. (gfc_trans_character_select): Use size_int for bounds of range types. * trans-io.c (gfc_build_io_library_fndecls): Likewise. (add_case): Do not pass NULL as type to build_int_cst. (transfer_expr): Likewise. (transfer_array_desc): Likewise. * trans-decl.c (gfc_add_assign_aux_vars): Use gfc_charlen_type_node for lengths. (gfc_trans_assign_aux_var): Likewise. (create_main_function): Use size_int for bounds of range types. * trans-intrinsic.c (gfc_conv_intrinsic_minmax_char): Do not pass NULL as type to build_int_cst. (gfc_conv_intrinsic_spacing): Likewise. (gfc_conv_intrinsic_rrspacing): Likewise. (gfc_conv_intrinsic_len): Use gfc_charlen_type_node for lengths. From-SVN: r173374
Diffstat (limited to 'gcc/fortran/trans-const.c')
-rw-r--r--gcc/fortran/trans-const.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/fortran/trans-const.c b/gcc/fortran/trans-const.c
index 30739d8..5fbe765 100644
--- a/gcc/fortran/trans-const.c
+++ b/gcc/fortran/trans-const.c
@@ -75,11 +75,11 @@ gfc_build_string_const (int length, const char *s)
tree len;
str = build_string (length, s);
- len = build_int_cst (NULL_TREE, length);
+ len = size_int (length);
TREE_TYPE (str) =
build_array_type (gfc_character1_type_node,
build_range_type (gfc_charlen_type_node,
- integer_one_node, len));
+ size_one_node, len));
return str;
}
@@ -104,11 +104,11 @@ gfc_build_wide_string_const (int kind, int length, const gfc_char_t *string)
str = build_string (size, s);
free (s);
- len = build_int_cst (NULL_TREE, length);
+ len = size_int (length);
TREE_TYPE (str) =
build_array_type (gfc_get_char_type (kind),
build_range_type (gfc_charlen_type_node,
- integer_one_node, len));
+ size_one_node, len));
return str;
}