parser.c (cp_parser_context_free_list): New variable.
authorMark Mitchell <mark@codesourcery.com>
Tue, 31 Dec 2002 00:11:47 +0000 (00:11 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 31 Dec 2002 00:11:47 +0000 (00:11 +0000)
commite5976695d91f43bc0b49cd260cb88391eb32eae7
tree3e32a2e08e8b48e771d49aa4da01262bdb1610a1
parent9f1cf235ef3a2ed493966b22eabededb15dd8cbb
parser.c (cp_parser_context_free_list): New variable.

* 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.

From-SVN: r60665
gcc/cp/ChangeLog
gcc/cp/parser.c