This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Trivial objc patch
- From: Ziemowit Laski <zlaski at apple dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 19 Aug 2002 18:50:44 -0700
- Subject: Trivial objc patch
This will be committed to TOT as obvious.
2002-08-19 Ziemowit Laski <zlaski@apple.com>
* objc/objc-act.c (building_objc_message_expr): Rename to
current_objc_message_selector.
Index: gcc/objc/objc-act.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/objc/objc-act.c,v
retrieving revision 1.151
diff -c -3 -p -r1.151 objc-act.c
*** gcc/objc/objc-act.c 20 Aug 2002 01:27:38 -0000 1.151
--- gcc/objc/objc-act.c 20 Aug 2002 01:39:38 -0000
*************** receiver_is_class_object (receiver)
*** 4642,4653 ****
the identifier of the selector of the message. This is
used when printing warnings about argument mismatches. */
! static tree building_objc_message_expr = 0;
tree
objc_message_selector ()
{
! return building_objc_message_expr;
}
/* Construct an expression for sending a message.
--- 4642,4653 ----
the identifier of the selector of the message. This is
used when printing warnings about argument mismatches. */
! static tree current_objc_message_selector = 0;
tree
objc_message_selector ()
{
! return current_objc_message_selector;
}
/* Construct an expression for sending a message.
*************** finish_message_expr (receiver, sel_name,
*** 4923,4929 ****
}
/* Save the selector name for printing error messages. */
! building_objc_message_expr = sel_name;
/* Build the parameters list for looking up the method.
These are the object itself and the selector. */
--- 4923,4929 ----
}
/* Save the selector name for printing error messages. */
! current_objc_message_selector = sel_name;
/* Build the parameters list for looking up the method.
These are the object itself and the selector. */
*************** finish_message_expr (receiver, sel_name,
*** 4937,4943 ****
receiver, self_object,
selector, method_params);
! building_objc_message_expr = 0;
return retval;
}
--- 4937,4943 ----
receiver, self_object,
selector, method_params);
! current_objc_message_selector = 0;
return retval;
}
--------------------------------------------------------------
Ziemowit Laski 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group Cupertino, CA USA 95014-2083
Apple Computer, Inc. +1.408.974.6229 Fax .5477