public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [gomp4, committed] Obvious -Wall fixes in openacc tests
@ 2015-07-18  8:25 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2015-07-18  8:25 UTC (permalink / raw)
  To: gcc-patches, Jakub Jelinek

[-- 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-18  7:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-18  8:25 [gomp4, committed] Obvious -Wall fixes in openacc tests Tom de Vries

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).