From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15953 invoked by alias); 18 Jul 2015 07:09:31 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 15938 invoked by uid 89); 18 Jul 2015 07:09:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: fencepost.gnu.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (208.118.235.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 18 Jul 2015 07:09:28 +0000 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51220) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ZGMFS-00025Z-16 for gcc-patches@gnu.org; Sat, 18 Jul 2015 03:09:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGMFO-00076j-HZ for gcc-patches@gnu.org; Sat, 18 Jul 2015 03:09:25 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:54002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGMFO-00076Z-At for gcc-patches@gnu.org; Sat, 18 Jul 2015 03:09:22 -0400 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1ZGMFN-0004XO-If from Tom_deVries@mentor.com ; Sat, 18 Jul 2015 00:09:21 -0700 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.3.224.2; Sat, 18 Jul 2015 08:09:19 +0100 Message-ID: <55A9FB9B.4080202@mentor.com> Date: Sat, 18 Jul 2015 08:25:00 -0000 From: Tom de Vries User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "gcc-patches@gnu.org" , Jakub Jelinek Subject: [gomp4, committed] Obvious -Wall fixes in openacc tests Content-Type: multipart/mixed; boundary="------------040407060206000605070403" X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 192.94.38.131 X-SW-Source: 2015-07/txt/msg01595.txt.bz2 --------------040407060206000605070403 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 130 Hi, I've committed these three obvious patches that fix -Wall warnings in openacc test-cases to gomp-4_0-branch. Thanks, - Tom --------------040407060206000605070403 Content-Type: text/x-patch; name="0003-Add-missing-return-in-private-reduction-1.c.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="0003-Add-missing-return-in-private-reduction-1.c.patch" Content-length: 700 Add missing return in private-reduction-1.c 2015-07-17 Tom de Vries * c-c++-common/goacc/private-reduction-1.c (reduction): Add missing return. --- gcc/testsuite/c-c++-common/goacc/private-reduction-1.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/testsuite/c-c++-common/goacc/private-reduction-1.c b/gcc/testsuite/c-c++-common/goacc/private-reduction-1.c index 1e0f286..d4e3995 100644 --- a/gcc/testsuite/c-c++-common/goacc/private-reduction-1.c +++ b/gcc/testsuite/c-c++-common/goacc/private-reduction-1.c @@ -7,4 +7,6 @@ reduction () #pragma acc loop private (r) reduction (+:r) for (i = 0; i < 100; i++) r += 10; + + return r; } -- 1.9.1 --------------040407060206000605070403 Content-Type: text/x-patch; name="0004-Add-missing-parentheses-in-libgomp.oacc-c-c-common-v.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename*0="0004-Add-missing-parentheses-in-libgomp.oacc-c-c-common-v.pa"; filename*1="tch" Content-length: 845 Add missing parentheses in libgomp.oacc-c-c++-common/vec-partn-3.c 2015-07-17 Tom de Vries * testsuite/libgomp.oacc-c-c++-common/vec-partn-3.c (main): Add missing parentheses. --- libgomp/testsuite/libgomp.oacc-c-c++-common/vec-partn-3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/vec-partn-3.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/vec-partn-3.c index 7908d4c..8dd628e2 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/vec-partn-3.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/vec-partn-3.c @@ -48,7 +48,7 @@ main (int argc, char *argv[]) assert (n[i] == 2); for (i = 0; i < 1024; i++) - assert (arr[i] == (i % 64) < 32 ? 1 : -1); + assert (arr[i] == ((i % 64) < 32) ? 1 : -1); return 0; } -- 1.9.1 --------------040407060206000605070403 Content-Type: text/x-patch; name="0005-Fix-return-type-in-libgomp.oacc-c-c-common-gang-stat.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename*0="0005-Fix-return-type-in-libgomp.oacc-c-c-common-gang-stat.pa"; filename*1="tch" Content-length: 759 Fix return type in libgomp.oacc-c-c++-common/gang-static-1.c 2015-07-17 Tom de Vries * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c (test): Change return type to void. --- libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-1.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-1.c index 42f4585..d8ab958 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-1.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-1.c @@ -2,7 +2,8 @@ #define N 100 -int test(int *a, int *b, int sarg) +void +test (int *a, int *b, int sarg) { int i; -- 1.9.1 --------------040407060206000605070403--