This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH for tiny cleanups



This patch just fixes a name (one that I created) that I found truly
atrocious. 

-- 
Mark Mitchell 			mark@markmitchell.com
Mark Mitchell Consulting	http://www.markmitchell.com

1998-09-03  Mark Mitchell  <mark@markmitchell.com>

	* cp-tree.h (finish_globally_qualified_member_call_expr):
	Rename to ...
	(finish_qualified_call_expr).
	* semantics.c: Likewise.
	* parse.y (primary): Use it.
	* method.c (hack_identifier): Remove redundant code.

Index: cp/cp-tree.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/cp-tree.h,v
retrieving revision 1.131
diff -c -p -r1.131 cp-tree.h
*** cp-tree.h	1998/09/03 16:09:56	1.131
--- cp-tree.h	1998/09/04 02:22:49
*************** extern tree finish_this_expr            
*** 2932,2938 ****
  extern tree finish_object_call_expr             PROTO((tree, tree, tree));
  extern tree finish_qualified_object_call_expr   PROTO((tree, tree, tree));
  extern tree finish_pseudo_destructor_call_expr  PROTO((tree, tree, tree));
! extern tree finish_globally_qualified_member_call_expr PROTO ((tree, tree));
  extern tree finish_label_address_expr           PROTO((tree));
  extern tree finish_unary_op_expr                PROTO((enum tree_code, tree));
  extern tree finish_id_expr                      PROTO((tree));
--- 2932,2938 ----
  extern tree finish_object_call_expr             PROTO((tree, tree, tree));
  extern tree finish_qualified_object_call_expr   PROTO((tree, tree, tree));
  extern tree finish_pseudo_destructor_call_expr  PROTO((tree, tree, tree));
! extern tree finish_qualified_call_expr          PROTO ((tree, tree));
  extern tree finish_label_address_expr           PROTO((tree));
  extern tree finish_unary_op_expr                PROTO((enum tree_code, tree));
  extern tree finish_id_expr                      PROTO((tree));
Index: cp/method.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/method.c,v
retrieving revision 1.72
diff -c -p -r1.72 method.c
*** method.c	1998/08/27 02:04:26	1.72
--- method.c	1998/09/04 02:23:04
*************** hack_identifier (value, name)
*** 1954,1960 ****
        return value;
      }
  
!   if (TREE_CODE (type) == REFERENCE_TYPE && ! processing_template_decl)
      value = convert_from_reference (value);
    return value;
  }
--- 1954,1960 ----
        return value;
      }
  
!   if (! processing_template_decl)
      value = convert_from_reference (value);
    return value;
  }
Index: cp/parse.y
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/parse.y,v
retrieving revision 1.86
diff -c -p -r1.86 parse.y
*** parse.y	1998/08/28 15:43:56	1.86
--- parse.y	1998/09/04 02:23:38
*************** primary:
*** 1491,1499 ****
  	| overqualified_id  %prec HYPERUNARY
  		{ $$ = build_offset_ref (OP0 ($$), OP1 ($$)); }
  	| overqualified_id '(' nonnull_exprlist ')'
!                 { $$ = finish_globally_qualified_member_call_expr ($1, $3); }
  	| overqualified_id LEFT_RIGHT
! 		{ $$ = finish_globally_qualified_member_call_expr ($1, NULL_TREE); }
          | object object_template_id %prec UNARY
                  { 
  		  $$ = build_x_component_ref ($$, $2, NULL_TREE, 1); 
--- 1491,1499 ----
  	| overqualified_id  %prec HYPERUNARY
  		{ $$ = build_offset_ref (OP0 ($$), OP1 ($$)); }
  	| overqualified_id '(' nonnull_exprlist ')'
!                 { $$ = finish_qualified_call_expr ($1, $3); }
  	| overqualified_id LEFT_RIGHT
! 		{ $$ = finish_qualified_call_expr ($1, NULL_TREE); }
          | object object_template_id %prec UNARY
                  { 
  		  $$ = build_x_component_ref ($$, $2, NULL_TREE, 1); 
Index: cp/semantics.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/semantics.c,v
retrieving revision 1.26
diff -c -p -r1.26 semantics.c
*** semantics.c	1998/09/01 11:51:41	1.26
--- semantics.c	1998/09/04 02:23:41
*************** finish_pseudo_destructor_call_expr (obje
*** 995,1001 ****
     ARGS.  Returns an expression for the call.  */
  
  tree 
! finish_globally_qualified_member_call_expr (fn, args)
       tree fn;
       tree args;
  {
--- 995,1001 ----
     ARGS.  Returns an expression for the call.  */
  
  tree 
! finish_qualified_call_expr (fn, args)
       tree fn;
       tree args;
  {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]