aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
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/cp/class.c
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/cp/class.c')
-rw-r--r--gcc/cp/class.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 5c1b9e1..9d53e80 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -5382,9 +5382,8 @@ pushclass (tree type)
{
current_class_stack_size *= 2;
current_class_stack
- = xrealloc (current_class_stack,
- current_class_stack_size
- * sizeof (struct class_stack_node));
+ = XRESIZEVEC (struct class_stack_node, current_class_stack,
+ current_class_stack_size);
}
/* Insert a new entry on the class stack. */