This is the mail archive of the gcc-patches@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]

[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

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