summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn van Groningen2013-06-25 10:18:30 +0000
committerJohn van Groningen2013-06-25 10:18:30 +0000
commit0e4f09bbaeba683869318de2076ca40f32a40782 (patch)
treee50ff5ab07446abca2b7cc928157ce2874aba567
parentuse lea when generating position independent code for cmp with descriptor fix (diff)
use pc relative lea instruction for eval_fill on 64 bit linux
-rw-r--r--cgaas.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cgaas.c b/cgaas.c
index 8b5a4dc..17a739e 100644
--- a/cgaas.c
+++ b/cgaas.c
@@ -4913,6 +4913,11 @@ static void write_code (void)
store_c (0x90);
}
} else {
+#ifdef LINUX
+ if (pic_flag)
+ as_move_d_r (block->block_ea_label,0,REGISTER_D0);
+ else
+#endif
as_move_l_r (block->block_ea_label,REGISTER_D0);
store_c (0377);