https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87689

--- Comment #27 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Sun Mar  3 09:04:23 2019
New Revision: 269349

URL: https://gcc.gnu.org/viewcvs?rev=269349&root=gcc&view=rev
Log:
2019-03-03  Thomas Koenig  <tkoe...@gcc.gnu.org>

        PR fortran/87689
        Backport from trunk
        * trans-decl.c (gfc_get_extern_function_decl): Add argument
        actual_args and pass it through to gfc_get_function_type.
        * trans-expr.c (conv_function_val): Add argument actual_args
        and pass it on to gfc_get_extern_function_decl.
        (conv_procedure_call): Pass actual arguments to conv_function_val.
        * trans-types.c (get_formal_from_actual_arglist): New function.
        (gfc_get_function_type): Add argument actual_args.  Generate
        formal args from actual args if necessary.
        * trans-types.h (gfc_get_function_type): Add optional argument.
        * trans.h (gfc_get_extern_function_decl): Add optional argument.

2019-03-03  Thomas Koenig  <tkoe...@gcc.gnu.org>

        PR fortran/87689
        Backport from trunk
        * gfortran.dg/lto/20091028-1_0.f90: Add -Wno-lto-type-mismatch to
        options.
        * gfortran.dg/lto/20091028-2_0.f90: Likewise.
        * gfortran.dg/lto/pr87689_0.f: New file.
        * gfortran.dg/lto/pr87689_1.f: New file.
        * gfortran.dg/altreturn_9_0.f90: New file.
        * gfortran.dg/altreturn_9_1.f90: New file.


Added:
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/altreturn_9_0.f90
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/altreturn_9_1.f90
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/lto/pr87689_0.f
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/lto/pr87689_1.f
Modified:
    branches/gcc-8-branch/gcc/fortran/ChangeLog
    branches/gcc-8-branch/gcc/fortran/trans-decl.c
    branches/gcc-8-branch/gcc/fortran/trans-expr.c
    branches/gcc-8-branch/gcc/fortran/trans-types.c
    branches/gcc-8-branch/gcc/fortran/trans-types.h
    branches/gcc-8-branch/gcc/fortran/trans.h
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/lto/20091028-1_0.f90
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/lto/20091028-2_0.f90

Reply via email to