[Patch] Fortran: Add !GCC$ attributes DEPRECATED

Tobias Burnus tobias@codesourcery.com
Mon Nov 2 19:08:36 GMT 2020

This adds the Fortran equivalent to __attribute__((deprecated)),
except that "deprecated(message)" is not supported and that only
procedures + variables (and parameters) are supported and not

The issue came up with OpenMP,
cf. https://gcc.gnu.org/pipermail/gcc-patches/2020-October/557359.html



PS: The location for parameter is not ideal as they are resolved
too early; it can be improved, e.g., by moving to match_variable;
but I am not sure it is worth doing so.

Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fort-depr.diff
Type: text/x-patch
Size: 5886 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201102/ac33ba22/attachment.bin>

More information about the Gcc-patches mailing list