diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-02 12:37:15 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-02 12:37:15 +0000 |
commit | 7ea410eb84c8a3b6a4b16bb5601149b51a8d9d36 (patch) | |
tree | 474c190b932ebf02d011761d4c2e922cc80f4ac6 /gcc/ggc.h | |
parent | d4523b3e08aef9256085b2727cc1de9a5ba9df67 (diff) | |
download | gcc-7ea410eb84c8a3b6a4b16bb5601149b51a8d9d36.tar.gz |
* ggc.h (GGC_RESIZEVEC): New.
cp/
* parser.c (cp_lexer_new_main): Usr GGC_RESIZEVEC instead of
ggc_realloc.
(cp_parser_template_argument_list): Use XRESIZEVEC instead of xrealloc.
* class.c (pushclass): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107887 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc.h')
-rw-r--r-- | gcc/ggc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ggc.h b/gcc/ggc.h index d6b2ea833b7..d6e2303de81 100644 --- a/gcc/ggc.h +++ b/gcc/ggc.h @@ -231,6 +231,7 @@ extern void dump_ggc_loc_statistics (void); #define GGC_CNEWVEC(T, N) ((T *) ggc_alloc_cleared ((N) * sizeof(T))) #define GGC_NEWVAR(T, S) ((T *) ggc_alloc ((S))) #define GGC_CNEWVAR(T, S) ((T *) ggc_alloc_cleared ((S))) +#define GGC_RESIZEVEC(T, P, N) ((T *) ggc_realloc ((P), (N) * sizeof (T))) #define ggc_alloc_rtvec(NELT) \ ((rtvec) ggc_alloc_zone (sizeof (struct rtvec_def) + ((NELT) - 1) \ |