Correct calls to vec::safe_grow in conditionally compiled code.
gcc/ChangeLog: * ggc-common.c (gt_pch_save): Add argument to a call. gcc/jit/ChangeLog: * jit-recording.c (recording::switch_::make_debug_string): Add argument to a call.
This commit is contained in:
parent
ba6373a397
commit
1ad755dcbb
@ -506,7 +506,7 @@ gt_pch_save (FILE *f)
|
||||
if (__builtin_expect (RUNNING_ON_VALGRIND, 0))
|
||||
{
|
||||
if (vbits.length () < valid_size)
|
||||
vbits.safe_grow (valid_size);
|
||||
vbits.safe_grow (valid_size, true);
|
||||
get_vbits = VALGRIND_GET_VBITS (state.ptrs[i]->obj,
|
||||
vbits.address (), valid_size);
|
||||
if (get_vbits == 3)
|
||||
|
@ -6310,7 +6310,7 @@ recording::switch_::make_debug_string ()
|
||||
{
|
||||
size_t len = strlen (c->get_debug_string ());
|
||||
unsigned idx = cases_str.length ();
|
||||
cases_str.safe_grow (idx + 1 + len);
|
||||
cases_str.safe_grow (idx + 1 + len, true);
|
||||
cases_str[idx] = ' ';
|
||||
memcpy (&(cases_str[idx + 1]),
|
||||
c->get_debug_string (),
|
||||
|
Loading…
Reference in New Issue
Block a user