Improved compiler checkings for ObjC + GNU runtime when sending messages
authorNicola Pero <nicola@gcc.gnu.org>
Mon, 29 Oct 2001 20:54:45 +0000 (20:54 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Mon, 29 Oct 2001 20:54:45 +0000 (20:54 +0000)
to self in class methods

From-SVN: r46613

gcc/ChangeLog

index 05613ff80a9ec9a49d7c53e47e200acf40abd317..5df28d73e63b45aeb02774db09e2d2b79f1a2abe 100644 (file)
@@ -1,3 +1,13 @@
+Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
+       
+       * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
+       determining the type of the receiver, do not check that TREE_CODE
+       of receiver is CALL_EXPR before calling receiver_is_class_object
+       ().  (receiver_is_class_object): For the GNU runtime: recognize
+       the case that the receiver is self in a class method context.
+       Check that TREE_CODE of receiver is CALL_EXPR when checking that
+       the receiver is a call to objc_get_class.
+
 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
 
        * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.