From 977af17137cdcb25828a3b0c42be65b0f991a629 Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Tue, 13 Mar 2012 13:50:46 +0000 Subject: safe global abc machine registers before ccall with G on 64 bit linux with thread safe code --- cginstructions.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cginstructions.c') 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 -- cgit v1.2.3