From: James Norris <jnorris@codesourcery.com>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: [gomp4] Backport from trunk
Date: Mon, 12 Oct 2015 20:41:00 -0000 [thread overview]
Message-ID: <561C1AE3.2040606@codesourcery.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 302 bytes --]
Hi,
The attached patch was backported from trunk.
commit 140722d9d2d574574c982f4616a80bb0ef766276
Author: jnorris <jnorris@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon Oct 12 20:22:30 2015 +0000
* testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
initializer.
Jim
[-- Attachment #2: test.patch --]
[-- Type: text/x-patch, Size: 668 bytes --]
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 ();
next reply other threads:[~2015-10-12 20:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-12 20:41 James Norris [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-10-09 16:56 James Norris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=561C1AE3.2040606@codesourcery.com \
--to=jnorris@codesourcery.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).