diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2018-02-07 19:32:21 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2018-02-07 19:32:21 +0000 |
commit | f320fdfd22463a969024c05347dc9fc24291296a (patch) | |
tree | 857b85fe7bb9f7ec11d56fb5efb42ac9feaa1742 /libgomp | |
parent | 0d7d8e66e4f6bcdfc363db28a4a79c3fe6d89beb (diff) | |
download | gcc-f320fdfd22463a969024c05347dc9fc24291296a.tar.gz |
Fix libgomp.oacc-c-c++-common/pr84217.c for C++
* testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
[__cplusplus]: Declare extern "C".
From-SVN: r257457
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 5 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c-c++-common/pr84217.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 91b47ce7137..df8a57d6ab1 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort) + [__cplusplus]: Declare extern "C". + 2018-02-07 Tom de Vries <tom@codesourcery.com> PR libgomp/84217 diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/pr84217.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/pr84217.c index 18ff66a560b..68768389008 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/pr84217.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/pr84217.c @@ -1,4 +1,8 @@ -extern void abort (void); +extern +#ifdef __cplusplus +"C" +#endif +void abort (void); #define N 10 |