From 1be0899d946246574f623e95a2252e743d4a3188 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sat, 9 May 2015 00:50:35 -0400 Subject: [PATCH] openacc.h (__GOACC_NOTHROW): Fix noexcept syntax. * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax. * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use _Complex. From-SVN: r222966 --- libgomp/ChangeLog | 7 +++++++ libgomp/openacc.h | 2 +- libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-4.c | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 982e2d3f033..869adbd5c65 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,10 @@ +2015-05-08 Jason Merrill + + * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use + _Complex. + + * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax. + 2015-05-06 Julian Brown * oacc-init.c (acc_device_lock): Add explanatory comment. diff --git a/libgomp/openacc.h b/libgomp/openacc.h index 334324114f1..44a1526597d 100644 --- a/libgomp/openacc.h +++ b/libgomp/openacc.h @@ -39,7 +39,7 @@ extern "C" { #endif #if __cplusplus >= 201103 -# define __GOACC_NOTHROW noexcept () +# define __GOACC_NOTHROW noexcept #elif __cplusplus # define __GOACC_NOTHROW throw () #else /* Not C++ */ diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-4.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-4.c index d7da19e829b..eab24281514 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-4.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-4.c @@ -14,7 +14,7 @@ main(void) { const int n = 1000; int i; - double complex vresult, result, array[n]; + double _Complex vresult, result, array[n]; bool lvresult, lresult; for (i = 0; i < n; i++) -- 2.30.2