[cfe-commits] [PATCH] Add -fobjc-direct-class-refs

Jonathan Schleifer js at webkeks.org
Sat Jun 30 13:58:58 PDT 2012


Am 21.06.2012 um 22:27 schrieb John McCall:

> I've implemented a -fobjc-runtime= flag;  feel free to write up a patch adding an objfw alternative.

Thanks a lot! That really helps!

However, when trying -fobjc-runtime=gnu and NOT using the GNUstep runtime, I get this:

Undefined symbols for architecture x86_64:
  "_objc_msgSend", referenced from:
      _of_application_main in OFApplication.lib.o
      __c_OFApplication__sharedApplication in OFApplication.lib.o
      __c_OFApplication__programName in OFApplication.lib.o
      __c_OFApplication__arguments in OFApplication.lib.o
      __c_OFApplication__environment in OFApplication.lib.o
      __i_OFApplication__init in OFApplication.lib.o
      _atexit_handler in OFApplication.lib.o
      ...
  "_objc_slot_lookup_super", referenced from:
      __i_OFApplication__init in OFApplication.lib.o
      __i_OFApplication__dealloc in OFApplication.lib.o
      __c_OFArray__alloc in OFArray.lib.o
      __i_OFArray__init in OFArray.lib.o
      __i_OFArrayEnumerator__initWithArray_mutationsPtr_ in OFArray.lib.o
      __i_OFArrayEnumerator__dealloc in OFArray.lib.o
      __i_OFArray_subarray__initWithArray_range_ in OFArray_subarray.lib.o
      ...

These are not present in the GNU runtime, yet they are referenced.

So, we still seem to have the problem that GNU runtime means GNUstep runtime in Clang and is by no means the GNU GCC runtime. I guess this is something David needs to clean up by removing the GNUstep runtime from -fobjc-runtime=gnu and moving it to -fobjc-runtime=gnustep?

--
Jonathan



More information about the cfe-commits mailing list