Commit 0678ade0 by Joern Rennecke Committed by Joern Rennecke

toplev.c (default_get_pch_validity): Rename argument to "sz".

	* toplev.c (default_get_pch_validity): Rename argument to "sz".
	* doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.

From-SVN: r156002
parent 72392b81
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
(TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types. (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
Clarify what 'cost of the -dependence' is. Fix quoting. 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> 2010-01-17 Jakub Jelinek <jakub@redhat.com>
* dwarf2out.c (mem_loc_descriptor): Don't ICE on * dwarf2out.c (mem_loc_descriptor): Don't ICE on
......
...@@ -9695,10 +9695,10 @@ Default: empty. ...@@ -9695,10 +9695,10 @@ Default: empty.
@section Parameters for Precompiled Header Validity Checking @section Parameters for Precompiled Header Validity Checking
@cindex parameters, precompiled headers @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 This hook returns a pointer to the data needed by
@code{TARGET_PCH_VALID_P} and sets @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 @end deftypefn
@deftypefn {Target Hook} {const char *} TARGET_PCH_VALID_P (const void *@var{data}, size_t @var{sz}) @deftypefn {Target Hook} {const char *} TARGET_PCH_VALID_P (const void *@var{data}, size_t @var{sz})
......
...@@ -1512,20 +1512,20 @@ option_affects_pch_p (int option, struct cl_option_state *state) ...@@ -1512,20 +1512,20 @@ option_affects_pch_p (int option, struct cl_option_state *state)
most targets, but completely right for very few. */ most targets, but completely right for very few. */
void * void *
default_get_pch_validity (size_t *len) default_get_pch_validity (size_t *sz)
{ {
struct cl_option_state state; struct cl_option_state state;
size_t i; size_t i;
char *result, *r; char *result, *r;
*len = 2; *sz = 2;
if (targetm.check_pch_target_flags) if (targetm.check_pch_target_flags)
*len += sizeof (target_flags); *sz += sizeof (target_flags);
for (i = 0; i < cl_options_count; i++) for (i = 0; i < cl_options_count; i++)
if (option_affects_pch_p (i, &state)) 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[0] = flag_pic;
r[1] = flag_pie; r[1] = flag_pie;
r += 2; r += 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment