mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-08 19:31:06 +08:00
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
This commit is contained in:
parent
72392b813f
commit
0678ade0fe
@ -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
|
||||
|
@ -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})
|
||||
|
10
gcc/toplev.c
10
gcc/toplev.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user