summaryrefslogtreecommitdiff
path: root/gcc/params.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/params.c')
-rw-r--r--gcc/params.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/params.c b/gcc/params.c
index 569ae47f040..2c653cf6157 100644
--- a/gcc/params.c
+++ b/gcc/params.c
@@ -40,8 +40,8 @@ void
add_params (const param_info params[], size_t n)
{
/* Allocate enough space for the new parameters. */
- compiler_params = xrealloc (compiler_params,
- (num_compiler_params + n) * sizeof (param_info));
+ compiler_params = XRESIZEVEC (param_info, compiler_params,
+ num_compiler_params + n);
/* Copy them into the table. */
memcpy (compiler_params + num_compiler_params,
params,