Patchwork =?UTF-8?Q?(libobjc)=20Applied=20fix=20for=20PR/45692?=

login
register
mail settings
Submitter Nicola Pero
Date Sept. 17, 2010, 10:14 a.m.
Message ID <1284718469.627514918@192.168.2.227>
Download mbox | patch
Permalink /patch/65052/
State New
Headers show

Comments

Nicola Pero - Sept. 17, 2010, 10:14 a.m.
In a previous patch I added a GNU-runtime-specific libobjc testcase
but forgot to make it GNU-runtime-specific.  I applied this patch in
trunk to fix it.

Thanks

Patch

Index: ChangeLog
===================================================================
--- ChangeLog   (revision 164357)
+++ ChangeLog   (working copy)
@@ -1,3 +1,9 @@ 
+2010-09-17  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       PR testsuite/45692      
+       * objc/execute/exceptions/throw-nil.m: Run the test only with the
+       GNU runtime.
+
 2010-09-17  Richard Guenther  <rguenther@suse.de>
 
        * gcc.dg/pr27898.c: Use -flto instead of -combine.
Index: objc/execute/exceptions/throw-nil.m
===================================================================
--- objc/execute/exceptions/throw-nil.m (revision 164357)
+++ objc/execute/exceptions/throw-nil.m (working copy)
@@ -1,8 +1,18 @@ 
 #include <objc/objc.h>
 #include <objc/Object.h>
 
+#ifdef __NEXT_RUNTIME__
+/* This test only runs for the GNU runtime.  */
+
+int main(void)
+{
+  return 0;
+}
+
+#else
+
 /* Test throwing a nil exception.  A 'nil' exception can only be
- * caugth by a generic exception handler.
+   caugth by a generic exception handler.
  */
 
 int main (void)
@@ -36,3 +46,5 @@ 
 
   return 0;
 }
+
+#endif