diff options
author | Martin Liska <mliska@suse.cz> | 2017-11-06 14:41:35 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-11-06 13:41:35 +0000 |
commit | 454f8b2b0c6f9645b3df6be98efe2ca520f2ce82 (patch) | |
tree | ffe7d782cda90da84b0baf13883d5da72a8f3eb2 /libgomp | |
parent | 98910bc2b97f248d158b301575c24597fd12ab34 (diff) | |
download | gcc-454f8b2b0c6f9645b3df6be98efe2ca520f2ce82.zip gcc-454f8b2b0c6f9645b3df6be98efe2ca520f2ce82.tar.gz gcc-454f8b2b0c6f9645b3df6be98efe2ca520f2ce82.tar.bz2 |
Fix -Wreturn-type fallout.
2017-11-06 Martin Liska <mliska@suse.cz>
* c-c++-common/cilk-plus/AN/pr57541-2.c (foo1): Return a value
for functions with non-void return type, or change type to void,
or add -Wno-return-type for test.
(foo2): Likewise.
* c-c++-common/cilk-plus/AN/pr57541.c (foo): Likewise.
(foo1): Likewise.
* c-c++-common/cilk-plus/CK/errors.c: Likewise.
* c-c++-common/cilk-plus/CK/pr60197.c: Likewise.
* c-c++-common/cilk-plus/CK/spawn_in_return.c: Likewise.
* c-c++-common/fold-masked-cmp-1.c (test_pic): Likewise.
(test_exe): Likewise.
* c-c++-common/fold-masked-cmp-2.c (test_exe): Likewise.
* g++.dg/cilk-plus/AN/builtin_fn_mutating_tplt.cc (my_func): Likewise.
* g++.dg/cilk-plus/CK/pr68997.cc (fa2): Likewise.
* g++.dg/eh/sighandle.C (dosegv): Likewise.
* g++.dg/ext/vector14.C (foo): Likewise.
(main): Likewise.
* g++.dg/graphite/pr41305.C: Likewise.
* g++.dg/graphite/pr42930.C: Likewise.
* g++.dg/opt/pr46640.C (struct QBasicAtomicInt): Likewise.
(makeDir): Likewise.
* g++.dg/other/i386-8.C (foo): Likewise.
* g++.dg/pr45788.C: Likewise.
* g++.dg/pr64688.C (at_c): Likewise.
* g++.dg/pr65032.C (G::DecodeVorbis): Likewise.
* g++.dg/pr71633.C (c3::fn2): Likewise.
* g++.dg/stackprotectexplicit2.C (A): Likewise.
* g++.old-deja/g++.law/weak.C (main): Likewise.
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-11-06 Martin Liska <mliska@suse.cz>
* testsuite/27_io/basic_fstream/cons/char/path.cc (main):
Return a value for functions with non-void return type,
or change type to void, or add -Wno-return-type for test.
* testsuite/27_io/basic_ifstream/cons/char/path.cc (main):
Likewise.
* testsuite/27_io/basic_ofstream/open/char/path.cc (main):
Likewise.
From-SVN: r254451
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 f68604c..7c0e808 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 ea3dc58..77144b8 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 731f234..a940854 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 3c93147..ce338d0 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 334a553..2f61daa 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 e318a48..221236f 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 c2dd228..d24b1d8 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; |