aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2015-07-17 17:17:26 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2015-07-17 17:17:26 +0000
commit896c28a7fad4b23f722bd538c972160d0c9bc88d (patch)
tree6bf4f91d3de1924396a0a586a128c298734d6e23
parentebe4a560737e72aa508af4c0d9e1ac6e84a97655 (diff)
downloadgcc-896c28a7fad4b23f722bd538c972160d0c9bc88d.zip
gcc-896c28a7fad4b23f722bd538c972160d0c9bc88d.tar.gz
gcc-896c28a7fad4b23f722bd538c972160d0c9bc88d.tar.bz2
target.c (GOMP_offload_register): Use int for device type arg.
* target.c (GOMP_offload_register): Use int for device type arg. (GOMP_offload_unregister): Likewise. From-SVN: r225944
-rw-r--r--libgomp/ChangeLog3
-rw-r--r--libgomp/target.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index 9810a18..8f2334a 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,5 +1,8 @@
2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
+ * target.c (GOMP_offload_register): Use int for device type arg.
+ (GOMP_offload_unregister): Likewise.
+
* target.c (struct_offload_image_descr): Constify host_table.
(gomp_offload_image_to_device): Likewise.
(GOMP_offload_register, GOMP_offload_unregister): Likewise.
diff --git a/libgomp/target.c b/libgomp/target.c
index ca536a0..bc88a1f 100644
--- a/libgomp/target.c
+++ b/libgomp/target.c
@@ -730,8 +730,7 @@ gomp_offload_image_to_device (struct gomp_device_descr *devicep,
the target, and TARGET_DATA needed by target plugin. */
void
-GOMP_offload_register (const void *host_table,
- enum offload_target_type target_type,
+GOMP_offload_register (const void *host_table, int target_type,
const void *target_data)
{
int i;
@@ -765,8 +764,7 @@ GOMP_offload_register (const void *host_table,
the target, and TARGET_DATA needed by target plugin. */
void
-GOMP_offload_unregister (const void *host_table,
- enum offload_target_type target_type,
+GOMP_offload_unregister (const void *host_table, int target_type,
const void *target_data)
{
void **host_func_table = ((void ***) host_table)[0];