Commit fae3018d by Tobias Burnus Committed by Tobias Burnus

re PR fortran/61628 ([MinGW)Write of medium sized or larger matrix fails without error message.)

2014-07-12  Tobias Burnus  <burnus@net-b.de>

        PR fortran/61628
        * trans-types.c (gfc_init_types): Fix data-type bug
        with gfc_max_array_element_size.

From-SVN: r212485
parent 42a8246d
2014-07-12 Tobias Burnus <burnus@net-b.de>
PR fortran/61628
* trans-types.c (gfc_init_types): Fix data-type bug
with gfc_max_array_element_size.
2014-07-12 Tobias Burnus <burnus@net-b.de>
* libgfortran.h (libcaf_atomic_codes): Add.
* trans-decl.c (gfor_fndecl_caf_atomic_def,
gfor_fndecl_caf_atomic_ref, gfor_fndecl_caf_atomic_cas,
......
......@@ -955,9 +955,9 @@ gfc_init_types (void)
n = TYPE_PRECISION (gfc_array_index_type) - GFC_DTYPE_SIZE_SHIFT;
gfc_max_array_element_size
= wide_int_to_tree (long_unsigned_type_node,
= wide_int_to_tree (size_type_node,
wi::mask (n, UNSIGNED,
TYPE_PRECISION (long_unsigned_type_node)));
TYPE_PRECISION (size_type_node)));
boolean_type_node = gfc_get_logical_type (gfc_default_logical_kind);
boolean_true_node = build_int_cst (boolean_type_node, 1);
......
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