From 7767580e64c75a8f2742013c91f55879c15d9386 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Fri, 2 Dec 2005 12:37:15 +0000 Subject: 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 --- gcc/ggc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/ggc.h') diff --git a/gcc/ggc.h b/gcc/ggc.h index d6b2ea8..d6e2303 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) \ -- cgit v1.1