aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc.h
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2005-12-02 12:37:15 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2005-12-02 12:37:15 +0000
commit7767580e64c75a8f2742013c91f55879c15d9386 (patch)
tree474c190b932ebf02d011761d4c2e922cc80f4ac6 /gcc/ggc.h
parenteeac616e62b2f1669fc5b0de912527b95fb81f6e (diff)
downloadgcc-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.h1
1 files changed, 1 insertions, 0 deletions
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) \