[PATCH]: Eliminate C++ keywords from the CP directory

Ian Lance Taylor iant@google.com
Fri Jul 18 15:53:00 GMT 2008


"Kaveh R. GHAZI" <ghazi@caip.rutgers.edu> writes:

> 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
>
> 	* cvt.c (convert_to_void): Avoid C++ keywords.
> 	* decl.c (walk_namespaces_r, wrapup_globals_for_namespace):
> 	Likewise.
> 	* friend.c (is_friend): Likewise.
> 	* init.c (perform_member_init): Likewise.
> 	* mangle.c (write_template_prefix, write_template_template_param):
> 	Likewise.
> 	* name-lookup.c (do_namespace_alias, do_using_directive,
> 	parse_using_directive, ambiguous_decl, arg_assoc): Likewise.
> 	* parser.c (cp_parser_template_id, cp_parser_namespace_definition,
> 	cp_parser_objc_typename, cp_parser_objc_method_keyword_params):
> 	Likewise.
> 	* pt.c (is_specialization_of_friend, lookup_template_class,
> 	push_tinst_level, instantiate_class_template,
> 	tsubst_copy_and_build): Likewise.
> 	* tree.c (add_stmt_to_compound): Likewise.
> 	* typeck.c (finish_class_member_access_expr): Likewise.

This is OK.


> diff -rup orig/egcc-SVN20080716/gcc/cp/parser.c egcc-SVN20080716/gcc/cp/parser.c
> --- orig/egcc-SVN20080716/gcc/cp/parser.c	2008-07-12 02:00:42.000000000 +0200
> +++ egcc-SVN20080716/gcc/cp/parser.c	2008-07-16 21:15:24.000000000 +0200
> @@ -9945,14 +9945,14 @@ cp_parser_template_id (cp_parser *parser
>    /* Parse the template-name.  */
>    is_identifier = false;
>    token = cp_lexer_peek_token (parser->lexer);
> -  template = cp_parser_template_name (parser, template_keyword_p,
> +  templ = cp_parser_template_name (parser, template_keyword_p,
>  				      check_dependency_p,
>  				      is_declaration,
>  				      &is_identifier);

Indentation needs fixing, I think.


Thanks.

Ian



More information about the Gcc-patches mailing list