]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/25392 (ICEs with -ff2c)
authorTobias Schlüter <tobi@gcc.gnu.org>
Thu, 21 Dec 2006 03:04:43 +0000 (04:04 +0100)
committerTobias Schlüter <tobi@gcc.gnu.org>
Thu, 21 Dec 2006 03:04:43 +0000 (04:04 +0100)
commitda4c6ed815c2723b3e9f6ddc375ea915da62d207
treee08435e41b0ca91e22171efc98b4f40e3898d64c
parent5165f1258bb2b110382156d62f46627e3e81654c
re PR fortran/25392 (ICEs with -ff2c)

PR fortran/25392
fortran/
* trans-stmt.c (gfc_trans_return): Fix comment formatting.
* trans-types.c (gfc_sym_type): Don't return early for functions.
Remove special handling for -ff2c.
(gfc_get_function_type): Add special handling for -ff2c.
* trans-decl.c (gfc_create_function_decl): Fix comment formatting.
(gfc_get_fake_result_decl): Make sure we get the right type for
functions.
(gfc_generate_function_code): Convert type of result variable to
type of function.
testsuite/
* gfortran.dg/f2c_8.f90: New test.

From-SVN: r120099
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/fortran/trans-stmt.c
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/f2c_8.f90 [new file with mode: 0644]