mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-01 07:44:05 +08:00
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
This commit is contained in:
parent
ebe4a56073
commit
896c28a7fa
@ -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.
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user