summaryrefslogtreecommitdiff
path: root/cginstructions.c
diff options
context:
space:
mode:
authorJohn van Groningen2003-09-25 12:46:44 +0000
committerJohn van Groningen2003-09-25 12:46:44 +0000
commit232880e3601772df9f5222ecc1b85b4e979820a4 (patch)
tree3d1c2042acc582f313255f58b45913929a14c84e /cginstructions.c
parentrename label_offset variable to prevent problem with #define for (diff)
use ffree instead of finit to free IA32 floating point register stack
Diffstat (limited to 'cginstructions.c')
-rw-r--r--cginstructions.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/cginstructions.c b/cginstructions.c
index 4328b13..f669156 100644
--- a/cginstructions.c
+++ b/cginstructions.c
@@ -2959,8 +2959,17 @@ void code_ccall (char *c_function_name,char *s,int length)
}
if (float_parameters){
+#if 1
+ int freg_n;
+
+ for (freg_n=0; freg_n<8; ++freg_n){
+ i_word_i (0xdd);
+ i_word_i (0xc0+freg_n);
+ }
+#else
i_word_i (0xdb);
i_word_i (0xe3);
+#endif
}
if (save_state_in_global_variables){