summaryrefslogtreecommitdiff
path: root/translate
diff options
context:
space:
mode:
authorTristan Gingold2013-12-18 05:26:54 +0100
committerTristan Gingold2013-12-18 05:26:54 +0100
commit40e03fd99305ab3f85dac3b9951e7a9ebf4efbff (patch)
treeb8dc2f9be0bfd172be8bf0a23798c4c9a6cf9328 /translate
parent48448a12ef628218db298d8b7c6879e28cdd019a (diff)
downloadghdl-40e03fd99305ab3f85dac3b9951e7a9ebf4efbff.tar.gz
ghdl-40e03fd99305ab3f85dac3b9951e7a9ebf4efbff.tar.bz2
ghdl-40e03fd99305ab3f85dac3b9951e7a9ebf4efbff.zip
Fix grt_stack_create for darwin/i386
Diffstat (limited to 'translate')
-rw-r--r--translate/grt/config/i386.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/translate/grt/config/i386.S b/translate/grt/config/i386.S
index 5c8aa0d..c742be0 100644
--- a/translate/grt/config/i386.S
+++ b/translate/grt/config/i386.S
@@ -70,7 +70,8 @@ ENTRY(grt_stack_create)
#if __APPLE__
call ___x86.get_pc_thunk.cx
L1$pb:
- movl L_grt_stack_loop$non_lazy_ptr-L1$pb(%ecx), %eax
+ movl L_grt_stack_loop$non_lazy_ptr-L1$pb(%ecx), %ecx
+ movl %ecx,-12(%eax)
#else
movl $NAME(grt_stack_loop), -12(%eax)
#endif