summaryrefslogtreecommitdiff
path: root/gcc/config/i386/intelmic-mkoffload.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-17 17:12:01 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-17 17:12:01 +0000
commit4e985e0f9fa9c9757a3e0231e08f9f1152bd92d9 (patch)
tree0620634b02bd3dbd3f65141af8fbb850d2590361 /gcc/config/i386/intelmic-mkoffload.c
parentfc25c6708493bdbf4809f733bc0e68a4ca117ae1 (diff)
downloadgcc-4e985e0f9fa9c9757a3e0231e08f9f1152bd92d9.tar.gz
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
Diffstat (limited to 'gcc/config/i386/intelmic-mkoffload.c')
-rw-r--r--gcc/config/i386/intelmic-mkoffload.c6
1 files changed, 3 insertions, 3 deletions
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"