diff options
author | John van Groningen | 2003-09-25 12:46:44 +0000 |
---|---|---|
committer | John van Groningen | 2003-09-25 12:46:44 +0000 |
commit | 232880e3601772df9f5222ecc1b85b4e979820a4 (patch) | |
tree | 3d1c2042acc582f313255f58b45913929a14c84e /cginstructions.c | |
parent | rename 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.c | 9 |
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){ |