This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Document NO_PROFILE_COUNTERS more accurately
- From: Jie Zhang <jzhang918 at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 07 Nov 2006 22:51:36 +0800
- Subject: [PATCH] Document NO_PROFILE_COUNTERS more accurately
NO_PROFILE_COUNTERS is used as a C expression in GCC. It's needed to be
defined as an expression with nonzero value if the mcount does not need
a counter variable. So saying "Define this macro if ..." in document is
not enough. This patch fixes this.
Is it OK?
Thanks,
Jie
* doc/tm.texi (NO_PROFILE_COUNTERS): Document more accurately.
Index: doc/tm.texi
===================================================================
--- doc/tm.texi (revision 118545)
+++ doc/tm.texi (working copy)
@@ -4535,10 +4535,11 @@
@end defmac
@defmac NO_PROFILE_COUNTERS
-Define this macro if the @code{mcount} subroutine on your system does
-not need a counter variable allocated for each function. This is true
-for almost all modern implementations. If you define this macro, you
-must not use the @var{labelno} argument to @code{FUNCTION_PROFILER}.
+Define this macro to be an expression with a nonzero value if the
+@code{mcount} subroutine on your system does not need a counter variable
+allocated for each function. This is true for almost all modern
+implementations. If you define this macro, you must not use the
+@var{labelno} argument to @code{FUNCTION_PROFILER}.
@end defmac
@defmac PROFILE_BEFORE_PROLOGUE