discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using GCC 4.5 on GNUStep


From: David Chisnall
Subject: Re: Using GCC 4.5 on GNUStep
Date: Tue, 14 Dec 2010 12:34:19 +0000

On 14 Dec 2010, at 12:19, Nicola Pero wrote:

> 
>> libobjc2 provides the same property functions as the Apple runtime
>> (and the ObjectiveC2 framework in GNUstep).  If GCC 4.6 uses these,
>> then it should be fine.  If it doesn't, then I'd suggest you change
>> that before 4.6 is released, because it will make maintaining the
>> compiler difficult in the future and will mean that GCC's libobj
>> won't work with code that has declared properties and is compiled
>> with clang.
> 
> GCC 4.6 uses the same functions as the Apple runtime, with the exception
> of objc_copyStruct(), which was designed wrong in the Apple runtime
> and has been replaced in the GNU Objective-C Runtime ABI by the couple
> of functions
> 
> objc_setPropertyStruct()
> objc_getPropertyStruct()
> 
> So, I guess libobjc2 would need these two (trivial functions) to work
> with GCC 4.6.

I see.  What are the prototypes of these?  It would be good to standardise this 
stuff - I'll modify clang to use them and avoid objc_copyStruct().

David


reply via email to

[Prev in Thread] Current Thread [Next in Thread]