]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/trans-types.c
re PR fortran/40005 (segfault in gt_ggc_mx_lang_tree_node)
authorRichard Guenther <rguenther@suse.de>
Sat, 25 Jul 2009 13:44:57 +0000 (13:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 25 Jul 2009 13:44:57 +0000 (13:44 +0000)
commit9618fb3c1bf9bf211109d87c435804f164202bda
treef31a521b266ab7c2fc65803ebeda79fb66969e8f
parent90661f261cdf7b2349d403c4669e0107faad310e
re PR fortran/40005 (segfault in gt_ggc_mx_lang_tree_node)

2009-07-25  Richard Guenther  <rguenther@suse.de>

PR fortran/40005
* trans-types.c (gfc_get_array_type_bounds): Use
build_distinct_type_copy with a proper TYPE_CANONICAL and
re-use the type-decl of the original type.
* trans-decl.c (build_entry_thunks): Signal cgraph we may not
garbage collect.
(create_main_function): Likewise.
(gfc_generate_function_code): Likewise.
* trans-expr.c (gfc_trans_subcomponent_assign): Do not use
fold_convert on record types.

From-SVN: r150079
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/fortran/trans-expr.c
gcc/fortran/trans-types.c