OSDN Git Service

* parser.c (cp_parser_context_free_list): New variable.
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Dec 2002 00:11:47 +0000 (00:11 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Dec 2002 00:11:47 +0000 (00:11 +0000)
commit2c593bd0c7a0f883ccd841589787ce4f1c32dbe8
tree3e32a2e08e8b48e771d49aa4da01262bdb1610a1
parentbfffe508e5cad9971423244642f57197942d4f79
* parser.c (cp_parser_context_free_list): New variable.
(cp_parser_context_new): Use it.
(cp_parser_error): Check return code from
cp_parser_simulate_error.
(cp_parser_simulate_error): Return a value.
(cp_parser_id_expression): Optimize common case.
(cp_parser_class_name): Likewise.
(cp_parser_class_specifier): Adjust call to
cp_parser_late_parsing_default_args.
(cp_parser_lookup_name): Optimize common case.
(cp_parser_late_parsing_for_member): Adjust call to
cp_parser_late_parsing_default_args.
(cp_parser_late_parsing_default_args): Add scope parameter.
(cp_parser_require): Avoid creating the error message unless it's
needed.
(cp_parser_parse_definitely): Place free'd contexts on the free
list.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60665 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c