This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][Doc] Document that you need to use -fprofile-generate when linking also
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Wed, 14 Apr 2004 23:40:39 -0400
- Subject: [PATCH][Doc] Document that you need to use -fprofile-generate when linking also
Self explanatory really. Just document that you need
-fprofile-generate or -lgcov when linking, just like
-fprofile-arcs.
OK?
Thanks,
Andrew Pinski
ChangeLog:
* invoke.texi (-fprofile-generate): Add that
you need to link with this option or use -lgcov.
Index: invoke.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/invoke.texi,v
retrieving revision 1.443
diff -u -p -r1.443 invoke.texi
--- invoke.texi 9 Apr 2004 19:57:47 -0000 1.443
+++ invoke.texi 15 Apr 2004 03:38:02 -0000
@@ -4376,6 +4376,8 @@ Disabled at levels @option{-O}, @option{
Enable options usually used for instrumenting application to produce
profile usefull
for later recompilation profile feedback based optimization.
+Link your object files with -lgcov or -fprofile-generate (the latter
implies the former).
+
The following options are enabled: @code{-fprofile-arcs},
@code{-fprofile-values}, @code{-fvpt}
@item -fprofile-use