summaryrefslogtreecommitdiffstats
path: root/gcc/gccspec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gccspec.c')
-rw-r--r--gcc/gccspec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gccspec.c b/gcc/gccspec.c
index e6d5e3ea30e..39b90d92fee 100644
--- a/gcc/gccspec.c
+++ b/gcc/gccspec.c
@@ -73,7 +73,7 @@ lang_specific_driver (int *in_argc ATTRIBUTE_UNUSED,
if (shared_libgcc)
{
/* Make sure to have room for the trailing NULL argument. */
- arglist = xmalloc ((argc+2) * sizeof (char *));
+ arglist = XNEWVEC (const char *, argc + 2);
i = 0;
do
OpenPOWER on IntegriCloud