]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/trans-types.c
trans-expr.c (gfc_conv_variable): POINTER results don't need f2c calling conventions.
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
Sun, 12 Jun 2005 15:21:12 +0000 (17:21 +0200)
committerTobias Schlüter <tobi@gcc.gnu.org>
Sun, 12 Jun 2005 15:21:12 +0000 (17:21 +0200)
commitb49a3de7433301048a330df014a008a2b4066e7d
treebc5470fb3f7a556ac4c9073c27d737c7be8be269
parent607fb860424ca6579ade785b50e7052ad50c0cd5
trans-expr.c (gfc_conv_variable): POINTER results don't need f2c calling conventions.

fortran/
* trans-expr.c (gfc_conv_variable): POINTER results don't need f2c
calling conventions.  Look at sym instead of sym->result.
* trans-types.c (gfc_sym_type): Remove workaround for frontend bug.
Remove condition which is always false with workaround removed.
(gfc_return_by_reference): Always look at sym, never at sym->result.
testsuite/
* gfortran.dg/f2c_7.f90: New test.

From-SVN: r100857
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/f2c_7.f90 [new file with mode: 0644]