summaryrefslogtreecommitdiff
path: root/cgstack.c
diff options
context:
space:
mode:
authorJohn van Groningen2011-02-01 14:05:38 +0000
committerJohn van Groningen2011-02-01 14:05:38 +0000
commite8a72185b6cd11a58e00d8f8f63bf852902b36ef (patch)
tree2a634aa29475e6d6f2b10ca8a871b659b0f3e608 /cgstack.c
parentuse .quad instead of .long and fix movsxd and remainder instructions (diff)
port to Mac OS X (AMD64)
Diffstat (limited to 'cgstack.c')
-rw-r--r--cgstack.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cgstack.c b/cgstack.c
index 890a275..30bcd66 100644
--- a/cgstack.c
+++ b/cgstack.c
@@ -4017,7 +4017,11 @@ static void generate_code_for_basic_block (struct block_graph *next_block_graph)
#if defined (I486)
i_move_id_r (0,REGISTER_A1,REGISTER_A2);
+# ifdef MACH_O64
+ i_jsr_id (8-2,REGISTER_A2,0);
+# else
i_jsr_id (4-2,REGISTER_A2,0);
+# endif
#else
# ifdef M68000
# if !defined (SUN)