From f320fdfd22463a969024c05347dc9fc24291296a Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Wed, 7 Feb 2018 19:32:21 +0000 Subject: [PATCH] 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 --- libgomp/ChangeLog | 5 +++++ libgomp/testsuite/libgomp.oacc-c-c++-common/pr84217.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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 -- 2.30.2