This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/53977] New: CPP: Support __func__/__FUNCTION__
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 Jul 2012 07:48:53 +0000
- Subject: [Bug fortran/53977] New: CPP: Support __func__/__FUNCTION__
- Auto-submitted: auto-generated
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