From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115829 invoked by alias); 12 Oct 2015 20:41:15 -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 115820 invoked by uid 89); 12 Oct 2015 20:41:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS,T_FROM_12LTRDOM autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 12 Oct 2015 20:41:12 +0000 Received: from svr-orw-fem-02x.mgc.mentorg.com ([147.34.96.206] helo=SVR-ORW-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1Zlju8-0007X5-QF from James_Norris@mentor.com for gcc-patches@gcc.gnu.org; Mon, 12 Oct 2015 13:41:08 -0700 Received: from [172.30.80.10] (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.3.224.2; Mon, 12 Oct 2015 13:41:08 -0700 Message-ID: <561C1AE3.2040606@codesourcery.com> Date: Mon, 12 Oct 2015 20:41:00 -0000 From: James Norris 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 Subject: [gomp4] Backport from trunk Content-Type: multipart/mixed; boundary="------------050302020700000403050605" X-SW-Source: 2015-10/txt/msg01170.txt.bz2 --------------050302020700000403050605 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 302 Hi, The attached patch was backported from trunk. commit 140722d9d2d574574c982f4616a80bb0ef766276 Author: jnorris Date: Mon Oct 12 20:22:30 2015 +0000 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop initializer. Jim --------------050302020700000403050605 Content-Type: text/x-patch; name="test.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="test.patch" Content-length: 668 diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/vector-loop.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/vector-loop.c index cc915a9..8a51ee3 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/vector-loop.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/vector-loop.c @@ -12,7 +12,7 @@ unsigned int n = N; int main (void) { - for (unsigned int i; i < n; ++i) + for (unsigned int i = 0; i < n; ++i) { a[i] = i % 3; b[i] = i % 5; @@ -25,7 +25,7 @@ main (void) c[i] = a[i] + b[i]; } - for (unsigned int i; i < n; ++i) + for (unsigned int i = 0; i < n; ++i) if (c[i] != (i % 3) + (i % 5)) abort (); --------------050302020700000403050605--