aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2015-05-09 00:50:35 -0400
committerJason Merrill <jason@gcc.gnu.org>2015-05-09 00:50:35 -0400
commit1be0899d946246574f623e95a2252e743d4a3188 (patch)
tree635fcce1f6a54233ad010ff64f581e15382aca04
parentf8356d52f287fd658471e91ce0089d89f6f17472 (diff)
downloadgcc-1be0899d946246574f623e95a2252e743d4a3188.zip
gcc-1be0899d946246574f623e95a2252e743d4a3188.tar.gz
gcc-1be0899d946246574f623e95a2252e743d4a3188.tar.bz2
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
-rw-r--r--libgomp/ChangeLog7
-rw-r--r--libgomp/openacc.h2
-rw-r--r--libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-4.c2
3 files changed, 9 insertions, 2 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index 982e2d3..869adbd 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,3 +1,10 @@
+2015-05-08 Jason Merrill <jason@redhat.com>
+
+ * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
+ _Complex.
+
+ * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
+
2015-05-06 Julian Brown <julian@codesourcery.com>
* oacc-init.c (acc_device_lock): Add explanatory comment.
diff --git a/libgomp/openacc.h b/libgomp/openacc.h
index 33432411..44a1526 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 d7da19e..eab2428 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++)