From ff96563abc523afa1e51bcd9d4effc58c5e32d23 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 17 Jul 2015 17:17:26 +0000 Subject: [PATCH] * target.c (GOMP_offload_register): Use int for device type arg. (GOMP_offload_unregister): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225944 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgomp/ChangeLog | 3 +++ libgomp/target.c | 6 ++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 9810a1837371..8f2334a28159 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,5 +1,8 @@ 2015-07-17 Nathan Sidwell + * 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 ca536a048d34..bc88a1fe586d 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]; -- 2.47.2