+2018-10-05 Paul Thomas <pault@gcc.gnu.org>
+
+ PR fortran/87487
+ * trans-decl.c (gfc_get_symbol_decl): Make sure that deferred
+ character length pointer initializer has the right type to fix
+ problem with deferred_character_24.f90 on big endian.
+
2018-10-03 Jeff Law <law@redhat.comg>
- * trans-types.c (get_typenode_from_name): Moved into gcc/tree.c.
+ * trans-types.c (get_typenode_from_name): Moved into gcc/tree.c.
2018-10-01 Paul Thomas <pault@gcc.gnu.org>
&& TREE_CODE (length) != INTEGER_CST
&& TREE_CODE (sym->ts.u.cl->backend_decl) != INDIRECT_REF)
{
+ length = fold_convert (gfc_charlen_type_node, length);
gfc_finish_var_decl (length, sym);
if (!sym->attr.associate_var
&& TREE_CODE (length) == VAR_DECL
DECL_INITIAL (length) = gfc_conv_initializer (len, &len->ts,
TREE_TYPE (length),
false, false, false);
+ DECL_INITIAL (length) = fold_convert (gfc_charlen_type_node,
+ DECL_INITIAL (length));
}
else
gcc_assert (!sym->value);