Native ObjC exceptions configure test broken with libobjc2

2010-09-18 Thread Quentin Mathé
Hi, Native ObjC exceptions support was recently turned on by default in gnustep-make. However this doesn't work with libobjc2, at least the configure test. objc/objc.h is missing to eliminate the 'nil' warning and Object in libobjc2 has an empty implementation. So either Object needs a more comple

RE: Native ObjC exceptions configure test broken with libobjc2

2010-09-18 Thread Nicola Pero
ch to get the test to work with libobjc2 as it is, I'd happily accept it. Thanks -Original Message- From: "Quentin Mathé" Sent: Saturday, 18 September, 2010 19:24 To: "GNUstep Developer" Subject: Native ObjC exceptions confi

Re: Native ObjC exceptions configure test broken with libobjc2

2010-09-18 Thread David Chisnall
On 18 Sep 2010, at 19:24, Nicola Pero wrote: > I'd suggest that libobjc2 could include a minimal Object implementation. > Having Object is handy to perform simple configure tests and both the Apple > and GNU runtime include a minimal implementation for that reason ... it would > make sense for li

Re: Native ObjC exceptions configure test broken with libobjc2

2010-09-18 Thread Andrew Pinski
On Sep 18, 2010, at 11:31 AM, David Chisnall wrote: On 18 Sep 2010, at 19:24, Nicola Pero wrote: I'd suggest that libobjc2 could include a minimal Object implementation. Having Object is handy to perform simple configure tests and both the Apple and GNU runtime include a minimal impleme

Re: Native ObjC exceptions configure test broken with libobjc2

2010-09-18 Thread Nicola Pero
> Actually, this test will fail with Apple's Modern Runtime too - Object no > longer implements +new. > If you define __OBJC2__ (which recent Apple compilers do, you only get these > two methods on Object: > > +class; > -(BOOL) isEqual:anObject; > > +new is no longer allowed, so there is no def

Re: Native ObjC exceptions configure test broken with libobjc2

2010-09-18 Thread David Chisnall
On 18 Sep 2010, at 21:00, Nicola Pero wrote: > So, maybe a better solution would be to assume that (eg) @try/@throw/@catch > works on Apple/NeXT > runtime (ie, NeXT runtime AND __OBJC2__), and have a normal test using Object > elsewhere ? I seem to remember writing a post recently that descri

Re: Native ObjC exceptions configure test broken with libobjc2

2010-09-19 Thread David Chisnall
On 19 Sep 2010, at 02:01, David Chisnall wrote: > I seem to remember writing a post recently that described how to test for > libobjc2 and for the various optional features compiled with it. The > simplest thing to do is just #include and then see if > __GNUSTEP_RUNTIME__ is defined. I obv