search for: forkeypath

Displaying 3 results from an estimated 3 matches for "forkeypath".

2008 Oct 14
2
[LLVMdev] LLVM 2.4 problem? (resend)
Hi, I don't know enough C to know for certain if this is a programmer or compiler error: In a Objective-C source file I have: . static const char sessionEntriesKVO = ' '; . Later I use that variable as a ID by taking it's address like this: [feedManager addObserver:self forKeyPath:@"sessionEntriesCount" options:0 context:&sessionEntriesKVO]; and later . if (aContext == &sessionEntriesKVO) { . With GCC 4.2 everything works as expected but with LLVM-GCC it seems that the optimizer does something strange to the sessionEntriesKVO variable (I get strang...
2008 Oct 15
0
[LLVMdev] LLVM 2.4 problem? (resend)
...that demonstrates the problem, thanks! -Chris > > > In a Objective-C source file I have: > > . > static const char sessionEntriesKVO = ' '; > . > > Later I use that variable as a ID by taking it's address like this: > > [feedManager addObserver:self forKeyPath:@"sessionEntriesCount" > options:0 context:&sessionEntriesKVO]; > > and later > > . > if (aContext == &sessionEntriesKVO) { > . > > With GCC 4.2 everything works as expected but with LLVM-GCC it seems > that the optimizer does something strange to the...
2008 Oct 14
0
[LLVMdev] LLVM 2.4 problem?
Hi, I don't know enough C to know for certain if this is a programmer or compiler error: In a Objective-C source file I have: . static const char sessionEntriesKVO = ' '; . Later I use that variable as a ID by taking it's address like this: [feedManager addObserver:self forKeyPath:@"sessionEntriesCount" options:0 context:&sessionEntriesKVO]; and later . if (aContext == &sessionEntriesKVO) { . With GCC 4.2 everything works as expected but with LLVM-GCC it seems that the optimizer does something strange to the sessionEntriesKVO variable (I get strang...