diff options
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 11 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c++/loop-2.C | 1 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c++/loop-4.C | 1 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c++/parallel-1.C | 1 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c++/shared-1.C | 1 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c++/single-1.C | 1 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c++/single-2.C | 1 |
7 files changed, 17 insertions, 0 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index f68604ca424..7c0e808d587 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,14 @@ +2017-11-06 Martin Liska <mliska@suse.cz> + + * testsuite/libgomp.c++/loop-2.C: Return a value + for functions with non-void return type, or change type to void, + or add -Wno-return-type for test. + * testsuite/libgomp.c++/loop-4.C: Likewise. + * testsuite/libgomp.c++/parallel-1.C: Likewise. + * testsuite/libgomp.c++/shared-1.C: Likewise. + * testsuite/libgomp.c++/single-1.C: Likewise. + * testsuite/libgomp.c++/single-2.C: Likewise. + 2017-10-31 Tom de Vries <tom@codesourcery.com> * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after diff --git a/libgomp/testsuite/libgomp.c++/loop-2.C b/libgomp/testsuite/libgomp.c++/loop-2.C index ea3dc588afd..77144b8e7c6 100644 --- a/libgomp/testsuite/libgomp.c++/loop-2.C +++ b/libgomp/testsuite/libgomp.c++/loop-2.C @@ -15,6 +15,7 @@ void parloop (int *a) a[i] = i + 3; } +int main() { int i, a[N]; diff --git a/libgomp/testsuite/libgomp.c++/loop-4.C b/libgomp/testsuite/libgomp.c++/loop-4.C index 731f2345021..a940854c637 100644 --- a/libgomp/testsuite/libgomp.c++/loop-4.C +++ b/libgomp/testsuite/libgomp.c++/loop-4.C @@ -1,5 +1,6 @@ extern "C" void abort (void); +int main() { int i, a; diff --git a/libgomp/testsuite/libgomp.c++/parallel-1.C b/libgomp/testsuite/libgomp.c++/parallel-1.C index 3c931471328..ce338d0ddf9 100644 --- a/libgomp/testsuite/libgomp.c++/parallel-1.C +++ b/libgomp/testsuite/libgomp.c++/parallel-1.C @@ -8,6 +8,7 @@ foo (void) return 10; } +int main () { int A = 0; diff --git a/libgomp/testsuite/libgomp.c++/shared-1.C b/libgomp/testsuite/libgomp.c++/shared-1.C index 334a553ce23..2f61daa1213 100644 --- a/libgomp/testsuite/libgomp.c++/shared-1.C +++ b/libgomp/testsuite/libgomp.c++/shared-1.C @@ -53,6 +53,7 @@ parallel (int a, int b) abort (); } +int main() { parallel (1, 2); diff --git a/libgomp/testsuite/libgomp.c++/single-1.C b/libgomp/testsuite/libgomp.c++/single-1.C index e318a48ca5c..221236f24f2 100644 --- a/libgomp/testsuite/libgomp.c++/single-1.C +++ b/libgomp/testsuite/libgomp.c++/single-1.C @@ -1,5 +1,6 @@ extern "C" void abort (void); +int main() { int i = 0; diff --git a/libgomp/testsuite/libgomp.c++/single-2.C b/libgomp/testsuite/libgomp.c++/single-2.C index c2dd228568d..d24b1d85e66 100644 --- a/libgomp/testsuite/libgomp.c++/single-2.C +++ b/libgomp/testsuite/libgomp.c++/single-2.C @@ -7,6 +7,7 @@ struct X int c; }; +int main() { int i = 0; |