aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc-common.c
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2020-08-28 08:31:50 -0600
committerMartin Sebor <msebor@redhat.com>2020-08-28 08:31:50 -0600
commit1ad755dcbbd56c0524ed4028f790a37a139138c5 (patch)
treec168c12f38f8bab339e3827efffd6dd3b9ceb337 /gcc/ggc-common.c
parentba6373a39782139789f0eeba7c0e607ec6dfb477 (diff)
downloadgcc-1ad755dcbbd56c0524ed4028f790a37a139138c5.zip
gcc-1ad755dcbbd56c0524ed4028f790a37a139138c5.tar.gz
gcc-1ad755dcbbd56c0524ed4028f790a37a139138c5.tar.bz2
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.
Diffstat (limited to 'gcc/ggc-common.c')
-rw-r--r--gcc/ggc-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c
index 0d528cf..94da02f 100644
--- a/gcc/ggc-common.c
+++ b/gcc/ggc-common.c
@@ -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)