From 4e985e0f9fa9c9757a3e0231e08f9f1152bd92d9 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 17 Jul 2015 17:12:01 +0000 Subject: gcc/ * config/nvptx/mkoffload.c (process): Constify host data. * config/i386/intelmic-mkoffload.c (generate_target_descr_file): Constify host data. (generate_host_descr_file): Likewise. libgomp/ * target.c (struct_offload_image_descr): Constify host_table. (gomp_offload_image_to_device): Likewise. (GOMP_offload_register, GOMP_offload_unregister): Likewise. libgcc/ * offloadstuff.c: Constify host data. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225943 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/i386/intelmic-mkoffload.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/config/i386/intelmic-mkoffload.c') diff --git a/gcc/config/i386/intelmic-mkoffload.c b/gcc/config/i386/intelmic-mkoffload.c index a3b0a5cc1ac..ca15868dde1 100644 --- a/gcc/config/i386/intelmic-mkoffload.c +++ b/gcc/config/i386/intelmic-mkoffload.c @@ -338,7 +338,7 @@ generate_host_descr_file (const char *host_compiler) fatal_error (input_location, "cannot open '%s'", src_filename); fprintf (src_file, - "extern void *__OFFLOAD_TABLE__;\n" + "extern const void *const __OFFLOAD_TABLE__;\n" "extern const void *const __offload_image_intelmic_start;\n" "extern const void *const __offload_image_intelmic_end;\n\n" @@ -350,11 +350,11 @@ generate_host_descr_file (const char *host_compiler) "#ifdef __cplusplus\n" "extern \"C\"\n" "#endif\n" - "void GOMP_offload_register (void *, int, const void *);\n" + "void GOMP_offload_register (const void *, int, const void *);\n" "#ifdef __cplusplus\n" "extern \"C\"\n" "#endif\n" - "void GOMP_offload_unregister (void *, int, const void *);\n\n" + "void GOMP_offload_unregister (const void *, int, const void *);\n\n" "__attribute__((constructor))\n" "static void\n" -- cgit v1.2.1