[Bug fortran/91557] [7/8/9 Regression] Bogus warning about unused dummy argument _formal_*
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91557 Thomas Koenig changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #5 from Thomas Koenig --- Fixed on all affected branches. Thanks a lot for the bug report!
[Bug fortran/91557] [7/8/9 Regression] Bogus warning about unused dummy argument _formal_*
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91557 --- Comment #4 from Thomas Koenig --- Author: tkoenig Date: Sun Sep 15 22:35:40 2019 New Revision: 275737 URL: https://gcc.gnu.org/viewcvs?rev=275737=gcc=rev Log: 2019-09-15 Thomas Koenig Backport from trunk PR fortran/91557 * trans-decl.c (generate_local_decl): Do not warn if the symbol is artificial. * trans-types.c (get_formal_from_actual_arglist): Set artificial attribute on dummy arguments. 2019-09-15 Thomas Koenig Backport from trunk PR fortran/91557 * gfortran.dg/warn_unused_dummy_argument_5.f90: New test. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/warn_unused_dummy_argument_5.f90 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/trans-decl.c branches/gcc-7-branch/gcc/fortran/trans-types.c branches/gcc-7-branch/gcc/testsuite/ChangeLog
[Bug fortran/91557] [7/8/9 Regression] Bogus warning about unused dummy argument _formal_*
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91557 --- Comment #3 from Thomas Koenig --- Author: tkoenig Date: Sun Sep 15 20:01:44 2019 New Revision: 275734 URL: https://gcc.gnu.org/viewcvs?rev=275734=gcc=rev Log: 2019-09-15 Thomas Koenig Backport from trunk PR fortran/91557 * trans-decl.c (generate_local_decl): Do not warn if the symbol is artificial. * trans-types.c (get_formal_from_actual_arglist): Set artificial attribute on dummy arguments. 2019-09-15 Thomas Koenig Backport from trunk PR fortran/91557 * gfortran.dg/warn_unused_dummy_argument_5.f90: New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/warn_unused_dummy_argument_5.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/trans-decl.c branches/gcc-8-branch/gcc/fortran/trans-types.c branches/gcc-8-branch/gcc/testsuite/ChangeLog
[Bug fortran/91557] [7/8/9 Regression] Bogus warning about unused dummy argument _formal_*
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91557 --- Comment #2 from Thomas Koenig --- Author: tkoenig Date: Sun Sep 15 19:48:41 2019 New Revision: 275733 URL: https://gcc.gnu.org/viewcvs?rev=275733=gcc=rev Log: 2019-09-15 Thomas Koenig Backport from trunk PR fortran/91557 * trans-decl.c (generate_local_decl): Do not warn if the symbol is artificial. * trans-types.c (get_formal_from_actual_arglist): Set artificial attribute on dummy arguments. 2019-09-15 Thomas Koenig Backport from trunk PR fortran/91557 * gfortran.dg/warn_unused_dummy_argument_5.f90: New test. Added: branches/gcc-9-branch/gcc/testsuite/gfortran.dg/warn_unused_dummy_argument_5.f90 Modified: branches/gcc-9-branch/gcc/fortran/ChangeLog branches/gcc-9-branch/gcc/fortran/trans-decl.c branches/gcc-9-branch/gcc/fortran/trans-types.c branches/gcc-9-branch/gcc/testsuite/ChangeLog