From patchwork Fri Sep 17 10:14:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicola Pero X-Patchwork-Id: 65052 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 8E363B70A7 for ; Fri, 17 Sep 2010 20:14:45 +1000 (EST) Received: (qmail 4982 invoked by alias); 17 Sep 2010 10:14:43 -0000 Received: (qmail 4974 invoked by uid 22791); 17 Sep 2010 10:14:42 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL, BAYES_00, SARE_SUB_ENC_UTF8, TW_BJ, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 17 Sep 2010 10:14:34 +0000 Received: from eggs.gnu.org ([140.186.70.92]:44188) by fencepost.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1OwXy2-0004Fc-HI for gcc-patches@gnu.org; Fri, 17 Sep 2010 06:14:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwXxf-0007Nu-Lt for gcc-patches@gnu.org; Fri, 17 Sep 2010 06:14:32 -0400 Received: from smtp161.iad.emailsrvr.com ([207.97.245.161]:51321) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwXxf-0007Ng-IO for gcc-patches@gnu.org; Fri, 17 Sep 2010 06:14:31 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp46.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id C0FE0E8382 for ; Fri, 17 Sep 2010 06:14:29 -0400 (EDT) Received: from dynamic7.wm-web.iad.mlsrvr.com (dynamic7.wm-web.iad1a.rsapps.net [192.168.2.148]) by smtp46.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id B089CE84AD for ; Fri, 17 Sep 2010 06:14:29 -0400 (EDT) Received: from meta-innovation.com (localhost [127.0.0.1]) by dynamic7.wm-web.iad.mlsrvr.com (Postfix) with ESMTP id 99E6F15380B3 for ; Fri, 17 Sep 2010 06:14:29 -0400 (EDT) Received: by www2.webmail.us (Authenticated sender: nicola.pero@meta-innovation.com, from: nicola.pero@meta-innovation.com) with HTTP; Fri, 17 Sep 2010 12:14:29 +0200 (CEST) Date: Fri, 17 Sep 2010 12:14:29 +0200 (CEST) Subject: =?UTF-8?Q?(libobjc)=20Applied=20fix=20for=20PR/45692?= From: "Nicola Pero" To: gcc-patches@gnu.org MIME-Version: 1.0 X-Type: plain Message-ID: <1284718469.627514918@192.168.2.227> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 Index: ChangeLog =================================================================== --- ChangeLog (revision 164357) +++ ChangeLog (working copy) @@ -1,3 +1,9 @@ +2010-09-17 Nicola Pero + + PR testsuite/45692 + * objc/execute/exceptions/throw-nil.m: Run the test only with the + GNU runtime. + 2010-09-17 Richard Guenther * 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 #include +#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