From: Rainer Orth Date: Wed, 7 Feb 2018 19:32:21 +0000 (+0000) Subject: Fix libgomp.oacc-c-c++-common/pr84217.c for C++ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f320fdfd22463a969024c05347dc9fc24291296a;p=gcc.git 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 --- 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 + + * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort) + [__cplusplus]: Declare extern "C". + 2018-02-07 Tom de Vries 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