add cp_parser_nonclass_name

Manuel López-Ibáñez lopezibanez@gmail.com
Mon Feb 25 23:51:00 GMT 2008


This patch adds the optimization discussed here:
http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00460.html

Basically, factor-out the code to handle non-class names, so we don't
need to call cp_parser_class_name if we know that a class cannot
appear in our current context.

Bootstrapped and regression tested on x86_64-unknown-linux-gnu.

OK for 4.4?

2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	* parser.c (cp_parser_nonclass_name): New.
	(cp_parser_pseudo_destructor_name): Use it instead of
	cp_parser_type_name.
	(cp_parser_type_name): Move code to cp_parser_nonclass_name.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: add-nonclass-name.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080225/1f3817f7/attachment.ksh>


More information about the Gcc-patches mailing list