OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PR c++/27292
[pf3gnuchains/gcc-fork.git]
/
gcc
/
langhooks.c
diff --git
a/gcc/langhooks.c
b/gcc/langhooks.c
index
69be1f5
..
b2b9b45
100644
(file)
--- 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;