re PR fortran/45077 (ICE with -fwhole-file in fold_convert_loc, at fold-const.c:2021)
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 20 Feb 2011 16:23:50 +0000 (16:23 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 20 Feb 2011 16:23:50 +0000 (16:23 +0000)
commit0101807c0345c2e0a714e093b02fc6d694c3cb28
tree4ff3a532bee79b4ddcc2dc31cb1cf8024cceab09
parent435eeab97f42819b07da3ab02b1e9fe520dd5929
re PR fortran/45077 (ICE with -fwhole-file in fold_convert_loc, at fold-const.c:2021)

2011-02-20  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/45077
PR fortran/44945
* trans-types.c (gfc_get_derived_type): Remove code that looks
for decls in gsym and add call to gfc_get_module_backend_decl.
* trans.h : Add prototype for gfc_get_module_backend_decl.
* trans-decl.c (gfc_get_module_backend_decl): New function.
(gfc_get_symbol_decl): Call it.

2011-02-20  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/45077
PR fortran/44945
* gfortran.dg/whole_file_28.f90 : New test.
* gfortran.dg/whole_file_29.f90 : New test.

From-SVN: r170337
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/fortran/trans-types.c
gcc/fortran/trans.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/whole_file_28.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/whole_file_29.f90 [new file with mode: 0644]