aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2017-10-31 12:56:41 +0000
committerTom de Vries <vries@gcc.gnu.org>2017-10-31 12:56:41 +0000
commit12e9c8ce6cdd8b01d1eb937a45fa037ec49eb0d0 (patch)
tree960997dbe574d9ccd4ae7ce50c25b27f7fb8a610
parent137073d34a47fe14f97e35f69d3941b2ef0bb5c1 (diff)
downloadgcc-12e9c8ce6cdd8b01d1eb937a45fa037ec49eb0d0.zip
gcc-12e9c8ce6cdd8b01d1eb937a45fa037ec49eb0d0.tar.gz
gcc-12e9c8ce6cdd8b01d1eb937a45fa037ec49eb0d0.tar.bz2
Remove semicolon after do {} while (false) in HSA_LOG
2017-10-31 Tom de Vries <tom@codesourcery.com> * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after "do {} while (false)". (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon after HSA_DEBUG call. From-SVN: r254264
-rw-r--r--libgomp/ChangeLog7
-rw-r--r--libgomp/plugin/plugin-hsa.c6
2 files changed, 10 insertions, 3 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index 39e98c7..f68604c 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,3 +1,10 @@
+2017-10-31 Tom de Vries <tom@codesourcery.com>
+
+ * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
+ "do {} while (false)".
+ (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
+ after HSA_DEBUG call.
+
2017-10-28 Jakub Jelinek <jakub@redhat.com>
* target.c (struct gomp_coalesce_buf): New type.
diff --git a/libgomp/plugin/plugin-hsa.c b/libgomp/plugin/plugin-hsa.c
index fc08f5d..cf3a4d51 100644
--- a/libgomp/plugin/plugin-hsa.c
+++ b/libgomp/plugin/plugin-hsa.c
@@ -261,7 +261,7 @@ init_enviroment_variables (void)
fprintf (stderr, __VA_ARGS__); \
} \
} \
- while (false);
+ while (false)
/* Print a debugging message to stderr. */
@@ -1241,7 +1241,7 @@ init_single_kernel (struct kernel_info *kernel, unsigned *max_omp_data_size)
if (dependency->dependencies_count > 0)
{
HSA_DEBUG ("HSA does not allow kernel dispatching code with "
- "a depth bigger than one\n")
+ "a depth bigger than one\n");
goto failure;
}
@@ -1664,7 +1664,7 @@ GOMP_OFFLOAD_async_run (int device, void *tgt_fn, void *tgt_vars,
{
pthread_t pt;
struct async_run_info *info;
- HSA_DEBUG ("GOMP_OFFLOAD_async_run invoked\n")
+ HSA_DEBUG ("GOMP_OFFLOAD_async_run invoked\n");
info = GOMP_PLUGIN_malloc (sizeof (struct async_run_info));
info->device = device;