In libobjc/: 2011-10-08 Richard Frith-Macdonald <rfm@gnu.org> Nicola Pero <nicola...
commit0ea39696e441675fa9c8d2e7dafd5ff6782e241d
authorNicola Pero <nicola@gcc.gnu.org>
Sat, 8 Oct 2011 17:52:06 +0000 (8 17:52 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Sat, 8 Oct 2011 17:52:06 +0000 (8 17:52 +0000)
treec87aa33515b54b89054895be5d96b1b5bee58c6b
parent30a390c8104f9530cd8721e699deecd823fc4e9c
In libobjc/: 2011-10-08 Richard Frith-Macdonald <rfm@gnu.org> Nicola Pero <nicola.pero@meta-innovation.com>

In libobjc/:
2011-10-08  Richard Frith-Macdonald <rfm@gnu.org>
            Nicola Pero  <nicola.pero@meta-innovation.com>

PR libobjc/50428
* sendmsg.c (__objc_send_initialize): If a class does not have an
+initialize method, search for an +initialize method in the
superclass and in the ancestor classes and execute the first one
that is found.  This makes the GNU runtime behave in the same way
as the Apple/NeXT runtime with respect to +initialize methods and
subclassing.

In gcc/:
2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>

PR libobjc/50428
* doc/objc.texi (Garbage Collection): Updated example to protect
+initialize against execution in subclasses.

In gcc/testsuite/:
2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>

PR libobjc/50428
* objc/execute/initialize-1.m: New test.

From-SVN: r179711
gcc/ChangeLog
gcc/doc/objc.texi
gcc/testsuite/ChangeLog
gcc/testsuite/objc/execute/initialize-1.m [new file with mode: 0644]
libobjc/ChangeLog
libobjc/sendmsg.c