http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49883
--- Comment #4 from Nicola Pero <nicola at gcc dot gnu.org> 2011-10-14 17:19:15 UTC --- Author: nicola Date: Fri Oct 14 17:19:07 2011 New Revision: 179997 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179997 Log: In libobjc/: 2011-10-14 Nicola Pero <nicola.p...@meta-innovation.com> Backport from mainline 2011-10-09 Nicola Pero <nicola.p...@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. Modified: branches/gcc-4_6-branch/libobjc/ChangeLog branches/gcc-4_6-branch/libobjc/init.c