In libobjc/: 2011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>
authorNicola Pero <nicola.pero@meta-innovation.com>
Sun, 9 Oct 2011 10:29:50 +0000 (10:29 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Sun, 9 Oct 2011 10:29:50 +0000 (10:29 +0000)
commitb4a50e4336a0d62a41e56b7e785211727543a1b3
tree52323cadfeff71297cb073de42a81990ba9f9e54
parent68e291ec19d388cf2c79ea01a826cfb3ca27b5a5
In libobjc/: 2011-10-09 Nicola Pero <nicola.pero@meta-innovation.com>

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

PR libobjc/49883
* init.c (__objc_exec_class): Work around a bug in clang's code
generation.  Clang sets the class->info field to values different
from 0x1 or 0x2 (the only allowed values in the traditional GNU
Objective-C runtime ABI) to store some additional information, but
this breaks backwards compatibility.  Wipe out all the bits in the
fields other than the first two upon loading a class.

2011-10-09  Nicola Pero  <nicola.pero@meta-innovation.com>

* class.c (objc_lookup_class): Added back for compatibility with
clang which seems to emit calls to it.

From-SVN: r179721
libobjc/ChangeLog
libobjc/class.c
libobjc/init.c