This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/53977] New: CPP: Support __func__/__FUNCTION__


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: unassigned@gcc.gnu.org
        ReportedBy: burnus@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]