This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix for PR libobjc/47922 ("[4.6 Regression] libobjc crashes with garbage collection in any real-life program")
- From: Matthias Klose <doko at ubuntu dot com>
- To: Nicola Pero <nicola dot pero at meta-innovation dot com>
- Cc: "gcc-patches at gnu dot org" <gcc-patches at gnu dot org>
- Date: Wed, 02 Mar 2011 02:49:09 +0100
- Subject: Re: Fix for PR libobjc/47922 ("[4.6 Regression] libobjc crashes with garbage collection in any real-life program")
- References: <1298898537.48212483@www2.webmail.us> <4D6C0278.6050609@ubuntu.com> <1298940053.32185934@www2.webmail.us>
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