From: Tom de Vries <Tom_deVries@mentor.com>
To: "gcc-patches@gnu.org" <gcc-patches@gnu.org>,
Jakub Jelinek <jakub@redhat.com>
Subject: [gomp4, committed] Obvious -Wall fixes in openacc tests
Date: Sat, 18 Jul 2015 08:25:00 -0000 [thread overview]
Message-ID: <55A9FB9B.4080202@mentor.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 130 bytes --]
Hi,
I've committed these three obvious patches that fix -Wall warnings in
openacc test-cases to gomp-4_0-branch.
Thanks,
- Tom
[-- Attachment #2: 0003-Add-missing-return-in-private-reduction-1.c.patch --]
[-- Type: text/x-patch, Size: 700 bytes --]
Add missing return in private-reduction-1.c
2015-07-17 Tom de Vries <tom@codesourcery.com>
* 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
[-- Attachment #3: 0004-Add-missing-parentheses-in-libgomp.oacc-c-c-common-v.patch --]
[-- Type: text/x-patch, Size: 845 bytes --]
Add missing parentheses in libgomp.oacc-c-c++-common/vec-partn-3.c
2015-07-17 Tom de Vries <tom@codesourcery.com>
* 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
[-- Attachment #4: 0005-Fix-return-type-in-libgomp.oacc-c-c-common-gang-stat.patch --]
[-- Type: text/x-patch, Size: 759 bytes --]
Fix return type in libgomp.oacc-c-c++-common/gang-static-1.c
2015-07-17 Tom de Vries <tom@codesourcery.com>
* 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
reply other threads:[~2015-07-18 7:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=55A9FB9B.4080202@mentor.com \
--to=tom_devries@mentor.com \
--cc=gcc-patches@gnu.org \
--cc=jakub@redhat.com \
/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).