gnustep-dev
[Top][All Lists]
Advanced

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

Re: Slightly odd behaviour with enumerateObjectsUsingBlock:


From: Thomas Davie
Subject: Re: Slightly odd behaviour with enumerateObjectsUsingBlock:
Date: Mon, 28 Feb 2011 14:24:18 +0000

On 28 Feb 2011, at 13:25, David Chisnall wrote:

> On 28 Feb 2011, at 12:39, Thomas Davie wrote:
> 
>> On 28 Feb 2011, at 12:29, David Chisnall wrote:
>> 
>>> On 28 Feb 2011, at 12:24, Thomas Davie wrote:
>>> 
>>>>> I just recompiled base to be sure – and now am sure that it's compiling 
>>>>> with clang.  Do I need to do something extra to make sure -fblocks gets 
>>>>> passed or is there an extra problem here?
>>> 
>>> -make should be passing -fblocks, but if it isn't then you need to do 
>>> something like:
>>> 
>>> $ make OBJCFLAGS='-fblocks'
>>> 
>>> David
>> 
>> make messages=yes reveals that -fblocks wasn't being passed, adding that 
>> flag however did not stop me getting these warnings.
> 
> Are you sure that the relevant files (GSArray.m / NSArray.m) were recompiled? 
>  I have GNUstep Make configured for GCC 4.2, but -base buit with:
> 
> $ gmake CC=clang OBJCFLAGS='-fobjc-nonfragile-abi -fblocks'
> 
> When I run your test program, I get this:
> 
> $ ./obj/test
> 2011-02-28 13:24:21.996 test[1157] 0 - a
> 2011-02-28 13:24:21.999 test[1157] 1 - b
> 2011-02-28 13:24:21.999 test[1157] 2 - c

Certain, a make clean, and make messages=yes reveals clang is being called with 
-fblocks, and I still get the log output after a fresh make install.

Bob


reply via email to

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