aboutsummaryrefslogtreecommitdiffstats
path: root/src/ortho/mcode/ortho_code-x86-insns.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/ortho/mcode/ortho_code-x86-insns.adb')
-rw-r--r--src/ortho/mcode/ortho_code-x86-insns.adb8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ortho/mcode/ortho_code-x86-insns.adb b/src/ortho/mcode/ortho_code-x86-insns.adb
index acdcc7746..5429df016 100644
--- a/src/ortho/mcode/ortho_code-x86-insns.adb
+++ b/src/ortho/mcode/ortho_code-x86-insns.adb
@@ -848,7 +848,7 @@ package body Ortho_Code.X86.Insns is
Set_Addrl_Frame (Expr, Reload (Spill, R_Any32, Num));
end if;
return Expr;
- when OE_Addrg =>
+ when OE_Addrd =>
return Expr;
when others =>
Error_Reg ("reload: unhandle expr in b_off", Expr, Dest);
@@ -938,7 +938,7 @@ package body Ortho_Code.X86.Insns is
if Get_Addrl_Frame (Insn) /= O_Enode_Null then
Free_Insn_Regs (Get_Addrl_Frame (Insn));
end if;
- when OE_Addrg =>
+ when OE_Addrd =>
-- RIP-relative, no reg to free.
null;
when others =>
@@ -1358,11 +1358,11 @@ package body Ortho_Code.X86.Insns is
when others =>
Error_Gen_Insn (Stmt, Reg);
end case;
- when OE_Addrg =>
+ when OE_Addrd =>
if Flags.M64 then
-- Use RIP-Relative addressing.
if Reg = R_Sib
- and then not Is_External_Object (Get_Addr_Object (Stmt))
+ and then not Is_External_Object (Get_Addr_Decl (Stmt))
then
Set_Expr_Reg (Stmt, R_Sib);
else