* toplev.c (default_get_pch_validity): Rename argument to "sz".
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Jan 2010 05:46:19 +0000 (05:46 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Jan 2010 05:46:19 +0000 (05:46 +0000)
* doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156002 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/doc/tm.texi
gcc/toplev.c

index a518cfd..5c839a8 100644 (file)
@@ -11,6 +11,9 @@
        (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
        Clarify what 'cost of the -dependence' is.  Fix quoting.
 
+       * toplev.c (default_get_pch_validity): Rename argument to "sz".
+       * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
+
 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
 
        * dwarf2out.c (mem_loc_descriptor): Don't ICE on
index f355e1c..e04c1ba 100644 (file)
@@ -9695,10 +9695,10 @@ Default: empty.
 @section Parameters for Precompiled Header Validity Checking
 @cindex parameters, precompiled headers
 
-@deftypefn {Target Hook} {void *} TARGET_GET_PCH_VALIDITY (size_t *@var{len})
+@deftypefn {Target Hook} {void *} TARGET_GET_PCH_VALIDITY (size_t *@var{sz})
 This hook returns a pointer to the data needed by
 @code{TARGET_PCH_VALID_P} and sets
-@samp{*@var{len}} to the size of the data in bytes.
+@samp{*@var{sz}} to the size of the data in bytes.
 @end deftypefn
 
 @deftypefn {Target Hook} {const char *} TARGET_PCH_VALID_P (const void *@var{data}, size_t @var{sz})
index 224b288..402ad82 100644 (file)
@@ -1512,20 +1512,20 @@ option_affects_pch_p (int option, struct cl_option_state *state)
    most targets, but completely right for very few.  */
 
 void *
-default_get_pch_validity (size_t *len)
+default_get_pch_validity (size_t *sz)
 {
   struct cl_option_state state;
   size_t i;
   char *result, *r;
 
-  *len = 2;
+  *sz = 2;
   if (targetm.check_pch_target_flags)
-    *len += sizeof (target_flags);
+    *sz += sizeof (target_flags);
   for (i = 0; i < cl_options_count; i++)
     if (option_affects_pch_p (i, &state))
-      *len += state.size;
+      *sz += state.size;
 
-  result = r = XNEWVEC (char, *len);
+  result = r = XNEWVEC (char, *sz);
   r[0] = flag_pic;
   r[1] = flag_pie;
   r += 2;