diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2005-12-02 12:37:15 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2005-12-02 12:37:15 +0000 |
commit | 7767580e64c75a8f2742013c91f55879c15d9386 (patch) | |
tree | 474c190b932ebf02d011761d4c2e922cc80f4ac6 /gcc/ggc.h | |
parent | eeac616e62b2f1669fc5b0de912527b95fb81f6e (diff) | |
download | gcc-7767580e64c75a8f2742013c91f55879c15d9386.zip gcc-7767580e64c75a8f2742013c91f55879c15d9386.tar.gz gcc-7767580e64c75a8f2742013c91f55879c15d9386.tar.bz2 |
ggc.h (GGC_RESIZEVEC): New.
* 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.
From-SVN: r107887
Diffstat (limited to 'gcc/ggc.h')
-rw-r--r-- | gcc/ggc.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) \ |