public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [doc] fix documentation of -fvtable-verify and related options
@ 2015-01-08 22:08 Sandra Loosemore
  2015-01-09  5:10 ` Jeff Law
  0 siblings, 1 reply; 3+ messages in thread
From: Sandra Loosemore @ 2015-01-08 22:08 UTC (permalink / raw)
  To: cmtice, GCC Patches

[-- Attachment #1: Type: text/plain, Size: 903 bytes --]

This patch cleans up the documentation of -fvtable-verify, -fvtv-debug, 
and -fvtv-counts.  The substantive change is to correct the location of 
the debug log files per discussion here:

https://gcc.gnu.org/ml/gcc/2015-01/msg00029.html

but I ended up doing a pretty much total rewrite of the text to fix 
various markup problems, issues with agreement of verb tense and 
plurals, usage of terms like "runtime", etc.

I think this particular patch goes a little beyond an obvious fix, so I 
have not committed it yet.  But, I don't want it to get lost in the 
shuffle, so I propose to do so in a few days if I don't hear any 
objection or request for more time to review it meanwhile.

-Sandra


2015-01-08  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
	([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
	of log files.

[-- Attachment #2: vtable.patch --]
[-- Type: text/x-patch, Size: 4930 bytes --]

Index: gcc/doc/invoke.texi
===================================================================
--- gcc/doc/invoke.texi	(revision 219335)
+++ gcc/doc/invoke.texi	(working copy)
@@ -2440,35 +2440,38 @@ violation of the ODR to define types wit
 @item -fvtable-verify=@r{[}std@r{|}preinit@r{|}none@r{]}
 @opindex fvtable-verify
 Turn on (or off, if using @option{-fvtable-verify=none}) the security
-feature that verifies at runtime, for every virtual call that is made, that
+feature that verifies at run time, for every virtual call, that
 the vtable pointer through which the call is made is valid for the type of
 the object, and has not been corrupted or overwritten.  If an invalid vtable
-pointer is detected (at runtime), an error is reported and execution of the
+pointer is detected at run time, an error is reported and execution of the
 program is immediately halted.
 
-This option causes runtime data structures to be built, at program start up,
-for verifying the vtable pointers.  The options @code{std} and @code{preinit}
+This option causes run-time data structures to be built at program startup,
+which are used for verifying the vtable pointers.  
+The options @samp{std} and @samp{preinit}
 control the timing of when these data structures are built.  In both cases the
-data structures are built before execution reaches 'main'.  The
-@option{-fvtable-verify=std} causes these data structure to be built after the
+data structures are built before execution reaches @code{main}.  Using
+@option{-fvtable-verify=std} causes the data structures to be built after
 shared libraries have been loaded and initialized.
-@option{-fvtable-verify=preinit} causes them to be built before the shared
+@option{-fvtable-verify=preinit} causes them to be built before shared
 libraries have been loaded and initialized.
 
-If this option appears multiple times in the compiler line, with different
-values specified, 'none' takes highest priority over both 'std' and
-'preinit'; 'preinit' takes priority over 'std'.
+If this option appears multiple times in the command line with different
+values specified, @samp{none} takes highest priority over both @samp{std} and
+@samp{preinit}; @samp{preinit} takes priority over @samp{std}.
 
 @item -fvtv-debug
 @opindex fvtv-debug
-Causes debug versions of the runtime functions for the vtable verification 
-feature to be called.  This assumes the @option{-fvtable-verify=std} or
-@option{-fvtable-verify=preinit} has been used.  This flag also causes the
-compiler to keep track of which vtable pointers it found for each class, and
-record that information in the file ``vtv_set_ptr_data.log'', in the dump
-file directory on the user's machine.
+When used in conjunction with @option{-fvtable-verify=std} or 
+@option{-fvtable-verify=preinit}, causes debug versions of the 
+runtime functions for the vtable verification feature to be called.  
+This flag also causes the compiler to log information about which 
+vtable pointers it finds for each class.
+This information is written to a file named @file{vtv_set_ptr_data.log} 
+in the directory named by the environment variable @env{VTV_LOGS_DIR} 
+if that is defined or the current working directory otherwise.
 
-Note:  This feature APPENDS data to the log file. If you want a fresh log
+Note:  This feature @emph{appends} data to the log file. If you want a fresh log
 file, be sure to delete any existing one.
 
 @item -fvtv-counts
@@ -2476,15 +2479,17 @@ file, be sure to delete any existing one
 This is a debugging flag.  When used in conjunction with
 @option{-fvtable-verify=std} or @option{-fvtable-verify=preinit}, this
 causes the compiler to keep track of the total number of virtual calls
-it encountered and the number of verifications it inserted.  It also
-counts the number of calls to certain runtime library functions
-that it inserts.  This information, for each compilation unit, is written
-to a file named ``vtv_count_data.log'', in the dump_file directory on
-the user's machine.   It also counts the size of the vtable pointer sets
-for each class, and writes this information to ``vtv_class_set_sizes.log''
+it encounters and the number of verifications it inserts.  It also
+counts the number of calls to certain run-time library functions
+that it inserts and logs this information for each compilation unit.
+The compiler writes this information to a file named
+@file{vtv_count_data.log} in the directory named by the environment
+variable @env{VTV_LOGS_DIR} if that is defined or the current working
+directory otherwise.  It also counts the size of the vtable pointer sets
+for each class, and writes this information to @file{vtv_class_set_sizes.log}
 in the same directory.
 
-Note:  This feature APPENDS data to the log files.  To get a fresh log
+Note:  This feature @emph{appends} data to the log files.  To get fresh log
 files, be sure to delete any existing ones.
 
 @item -fno-weak

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [doc] fix documentation of -fvtable-verify and related options
  2015-01-08 22:08 [doc] fix documentation of -fvtable-verify and related options Sandra Loosemore
@ 2015-01-09  5:10 ` Jeff Law
  2015-01-09 16:11   ` Sandra Loosemore
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Law @ 2015-01-09  5:10 UTC (permalink / raw)
  To: Sandra Loosemore, cmtice, GCC Patches

On 01/08/15 15:08, Sandra Loosemore wrote:
> This patch cleans up the documentation of -fvtable-verify, -fvtv-debug,
> and -fvtv-counts.  The substantive change is to correct the location of
> the debug log files per discussion here:
>
> https://gcc.gnu.org/ml/gcc/2015-01/msg00029.html
>
> but I ended up doing a pretty much total rewrite of the text to fix
> various markup problems, issues with agreement of verb tense and
> plurals, usage of terms like "runtime", etc.
>
> I think this particular patch goes a little beyond an obvious fix, so I
> have not committed it yet.  But, I don't want it to get lost in the
> shuffle, so I propose to do so in a few days if I don't hear any
> objection or request for more time to review it meanwhile.
>
> -Sandra
>
>
> 2015-01-08  Sandra Loosemore  <sandra@codesourcery.com>
>
>      gcc/
>      * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
>      ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
>      of log files.

This is fine.  I did note that in some places you use "run time" and 
others "run-time".  Not sure if you want those to be consistent or not.

Ok for the trunk.  If you want to make "run time" vs "run-time" 
consistent one way or the other consider it preapproved.

CHeers,
Jeff

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [doc] fix documentation of -fvtable-verify and related options
  2015-01-09  5:10 ` Jeff Law
@ 2015-01-09 16:11   ` Sandra Loosemore
  0 siblings, 0 replies; 3+ messages in thread
From: Sandra Loosemore @ 2015-01-09 16:11 UTC (permalink / raw)
  To: Jeff Law; +Cc: cmtice, GCC Patches

On 01/08/2015 10:10 PM, Jeff Law wrote:
> On 01/08/15 15:08, Sandra Loosemore wrote:
>> This patch cleans up the documentation of -fvtable-verify, -fvtv-debug,
>> and -fvtv-counts.  The substantive change is to correct the location of
>> the debug log files per discussion here:
>>
>> https://gcc.gnu.org/ml/gcc/2015-01/msg00029.html
>>
>> but I ended up doing a pretty much total rewrite of the text to fix
>> various markup problems, issues with agreement of verb tense and
>> plurals, usage of terms like "runtime", etc.
>>
>> I think this particular patch goes a little beyond an obvious fix, so I
>> have not committed it yet.  But, I don't want it to get lost in the
>> shuffle, so I propose to do so in a few days if I don't hear any
>> objection or request for more time to review it meanwhile.
>>
>> -Sandra
>>
>>
>> 2015-01-08  Sandra Loosemore  <sandra@codesourcery.com>
>>
>>      gcc/
>>      * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
>>      ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
>>      of log files.
>
> This is fine.  I did note that in some places you use "run time" and
> others "run-time".  Not sure if you want those to be consistent or not.
>
> Ok for the trunk.  If you want to make "run time" vs "run-time"
> consistent one way or the other consider it preapproved.

As I noted, the "runtime" vs "run time" vs "run-time" changes are 
deliberate.  See

https://gcc.gnu.org/codingconventions.html#Spelling

I did wonder, though, if "startup" should get the same treatment.... 
but currently "startup" is used consistently throughout the document as 
both noun and adjective, so any change to that ought to be handled 
separately.

-Sandra

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-09 16:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-08 22:08 [doc] fix documentation of -fvtable-verify and related options Sandra Loosemore
2015-01-09  5:10 ` Jeff Law
2015-01-09 16:11   ` Sandra Loosemore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).