http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53977

             Bug #: 53977
           Summary: CPP: Support __func__/__FUNCTION__
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: bur...@gcc.gnu.org


As requested at http://gcc.gnu.org/ml/fortran/2012-07/msg00054.html

It would be useful to provide the name of the current procedure when using -cpp
via __func__/__FUNCTION__.

>From the GCC's CPP manual:

"C99 introduces __func__, and GCC has provided __FUNCTION__ for a long time.
Both of these are strings containing the name of the current function (there
are slight semantic differences; see the GCC manual). Neither of them is a
macro; the preprocessor does not know the name of the current function. They
tend to be useful in conjunction with __FILE__ and __LINE__, though."

http://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html

Reply via email to