diff options
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r-- | gcc/langhooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c index 69be1f5..b2b9b45 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -467,7 +467,7 @@ write_global_declarations (void) tree globals = lang_hooks.decls.getdecls (); int len = list_length (globals); - tree *vec = xmalloc (sizeof (tree) * len); + tree *vec = XNEWVEC (tree, len); int i; tree decl; |