summaryrefslogtreecommitdiff
path: root/cginstructions.c
diff options
context:
space:
mode:
authorJohn van Groningen2012-03-13 13:50:46 +0000
committerJohn van Groningen2012-03-13 13:50:46 +0000
commit977af17137cdcb25828a3b0c42be65b0f991a629 (patch)
tree21329fbf4727d40fc4078c04d266121a8d813522 /cginstructions.c
parentuse pthread_getspecific instead of _pthread_getspecific on thread safe 64 bit... (diff)
safe global abc machine registers before ccall with G on 64 bit linux with thread safe code
Diffstat (limited to 'cginstructions.c')
-rw-r--r--cginstructions.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cginstructions.c b/cginstructions.c
index b72fbb6..bd5c49d 100644
--- a/cginstructions.c
+++ b/cginstructions.c
@@ -4576,11 +4576,10 @@ void code_ccall (char *c_function_name,char *s,int length)
if (save_state_in_global_variables){
if (tlsp_tls_index_label==NULL)
tlsp_tls_index_label=enter_label (STRING_tlsp_tls_index,IMPORT_LABEL);
-# ifndef LINUX_ELF
+
i_move_r_id (A_STACK_POINTER,SAVED_A_STACK_P_OFFSET,-4/*R9*/);
i_move_r_id (-7/*RDI*/,SAVED_HEAP_P_OFFSET,-4/*R9*/);
i_move_r_id (REGISTER_D7,SAVED_R15_OFFSET,-4/*R9*/);
-# endif
}
# endif