summaryrefslogtreecommitdiff
path: root/gcc/ggc.h
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-02 12:37:15 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-02 12:37:15 +0000
commit7ea410eb84c8a3b6a4b16bb5601149b51a8d9d36 (patch)
tree474c190b932ebf02d011761d4c2e922cc80f4ac6 /gcc/ggc.h
parentd4523b3e08aef9256085b2727cc1de9a5ba9df67 (diff)
downloadgcc-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.h1
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) \