From patchwork Thu Oct 2 04:26:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Kleen X-Patchwork-Id: 395791 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 730011400B6 for ; Thu, 2 Oct 2014 14:28:19 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; q=dns; s= default; b=wFPTVYtkghCz/YED1snTHzxpt9SUwbwhNSMSH/p77v7jnq53Io9Xd V6awZ+6V/XH+svoNgpAQPBRGHcn6Ck0nN6IjdPCJKUJpMe+QftMi07pPsaC2I2mC CQQqwmges2xb82qlcseh0DIAiflNnZtrjrxt+PVdQl8/RGw9dSFyfg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; s= default; bh=6C93JFRNSSziWXNxQBpOjCwHd0M=; b=raaQQCkZcHQ2OyHUT9QT uxl4qAQslF9FPcdzDsVRvnr7XCZbZWDA2NHUitLPaElnOrJh1EssHk9UA2rVpea4 Z0E3p/+cP6jWsFzbq4o2FnS631UKbT1JPEeWxK4NZkhfU894BDn8V9JjYdTXym39 z1hpGAZGdVkeMfcb+dDgfcw= Received: (qmail 24557 invoked by alias); 2 Oct 2014 04:28:11 -0000 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 Received: (qmail 24534 invoked by uid 89); 2 Oct 2014 04:28:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: one.firstfloor.org Received: from one.firstfloor.org (HELO one.firstfloor.org) (193.170.194.197) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 02 Oct 2014 04:28:08 +0000 Received: from basil.firstfloor.org (184-100-254-193.ptld.qwest.net [184.100.254.193]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by one.firstfloor.org (Postfix) with ESMTPSA id BABE286765; Thu, 2 Oct 2014 06:28:01 +0200 (CEST) Received: by basil.firstfloor.org (Postfix, from userid 1000) id F063FA2001; Wed, 1 Oct 2014 21:26:59 -0700 (PDT) From: Andi Kleen To: gcc-patches@gcc.gnu.org Cc: Andi Kleen Subject: [PATCH 4/5] Fix some of the existing Cilk tests for the new errors. Date: Wed, 1 Oct 2014 21:26:57 -0700 Message-Id: <1412224018-25368-4-git-send-email-andi@firstfloor.org> In-Reply-To: <1412224018-25368-3-git-send-email-andi@firstfloor.org> References: <1412224018-25368-1-git-send-email-andi@firstfloor.org> <1412224018-25368-2-git-send-email-andi@firstfloor.org> <1412224018-25368-3-git-send-email-andi@firstfloor.org> From: Andi Kleen gcc/testsuite/: 2014-09-30 Andi Kleen * c-c++-common/cilk-plus/AN/misc.c (main): Handle new cilk errors. --- gcc/testsuite/c-c++-common/cilk-plus/AN/misc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/misc.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/misc.c index 814786b..dcc414f 100644 --- a/gcc/testsuite/c-c++-common/cilk-plus/AN/misc.c +++ b/gcc/testsuite/c-c++-common/cilk-plus/AN/misc.c @@ -73,13 +73,13 @@ int main (void) while (ii != array2[1:x:3][1:2:1]) /* { dg-error "cannot be used as a condition for while statement" } */ x = 2; - do { /* { dg-error "cannot be used as a condition for a do-while statement" "" { target c } } */ + do { x = 3; - } while (ii != array2[:][:]); /* { dg-error "cannot be used as a condition for a do-while statement" "" { target c++ } } */ + } while (ii != array2[:][:]); /* { dg-error "cannot be used as a condition for a do-while statement" } */ - do { /* { dg-error "cannot be used as a condition for a do-while statement" "" { target c } } */ + do { x = 2; - } while (ii != (x + array2[:][1:x:2]) + 2); /* { dg-error "cannot be used as a condition for a do-while statement" "" { target c++ } } */ + } while (ii != (x + array2[:][1:x:2]) + 2); /* { dg-error "cannot be used as a condition for a do-while statement" } */ do { x += 3;