This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix for PR libobjc/47922 ("[4.6 Regression] libobjc crashes with garbage collection in any real-life program")


On 01.03.2011 01:40, Nicola Pero wrote:
> 
>>> add these in 4.7 (hopefully at the same time we should also make the change to install
>>> properly the GC library when GC is enabled!). ;-)
>>
>> why? it's built as a convenience library, and the object files are linked into
>> libobjc_gc.
> 
> I had a problem with gnustep-base requiring the header gc/gc.h, which is not installed when I install
> GCC.  The reason it requires it seems to be that the new trend is gnustep-base not using objc_malloc(),
> but calling the GC library directly.  Higher-level libraries then use NSAllocateCollectable() & friends
> to allocate memory, which is provided by gnustep-base.
> 
> Let me know if I'm missing something. ;-)

the other boehm-gc user in GCC is libjava, which doesn't require an installed gc
header.  Would it be sensible (if libobjc_gc is enabled) to install this header
in <gcc_lib_dir>/include/objc, so that it can be included as <objc/gc.h>?  That
way it wouldn't conflict with headers installed by a system wide libgc.

  Matthias


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]