Fortran: Add !GCC$ attributes DEPRECATED
authorTobias Burnus <tobias@codesourcery.com>
Tue, 3 Nov 2020 08:55:58 +0000 (09:55 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 3 Nov 2020 08:55:58 +0000 (09:55 +0100)
commit0caf400a865cb771f76bf1025cfc2a83e8ef00ed
tree259379fab27182a6be222d90c4f7ff3ca0778481
parent682ed7ad230f6177aadc060788e6f4a0780d8860
Fortran: Add !GCC$ attributes DEPRECATED

gcc/fortran/ChangeLog:

* decl.c (ext_attr_list): Add EXT_ATTR_DEPRECATED.
* gfortran.h (ext_attr_id_t): Ditto.
* gfortran.texi (GCC$ ATTRIBUTES): Document it.
* resolve.c (resolve_variable, resolve_function,
resolve_call, resolve_values): Show -Wdeprecated-declarations warning.
* trans-decl.c (add_attributes_to_decl): Skip those
with no middle_end_name.

gcc/testsuite/ChangeLog:

* gfortran.dg/attr_deprecated.f90: New test.
gcc/fortran/decl.c
gcc/fortran/gfortran.h
gcc/fortran/gfortran.texi
gcc/fortran/resolve.c
gcc/fortran/trans-decl.c
gcc/testsuite/gfortran.dg/attr_deprecated.f90 [new file with mode: 0644]