Commit 0bcee275 by Arnaud Charlet

Code cleanups.

From-SVN: r247205
parent b554177a
...@@ -7616,20 +7616,12 @@ package body Exp_Ch4 is ...@@ -7616,20 +7616,12 @@ package body Exp_Ch4 is
----------------------- -----------------------
procedure Expand_N_Op_Expon (N : Node_Id) is procedure Expand_N_Op_Expon (N : Node_Id) is
Loc : constant Source_Ptr := Sloc (N); Loc : constant Source_Ptr := Sloc (N);
Typ : constant Entity_Id := Etype (N); Ovflo : constant Boolean := Do_Overflow_Check (N);
Rtyp : constant Entity_Id := Root_Type (Typ); Typ : constant Entity_Id := Etype (N);
Base : Node_Id; Rtyp : constant Entity_Id := Root_Type (Typ);
Bastyp : Node_Id;
Exp : Node_Id; Bastyp : Entity_Id;
Exptyp : Entity_Id;
Ovflo : constant Boolean := Do_Overflow_Check (N);
Expv : Uint;
Temp : Node_Id;
Rent : RE_Id;
Ent : Entity_Id;
Etyp : Entity_Id;
Xnode : Node_Id;
function Wrap_MA (Exp : Node_Id) return Node_Id; function Wrap_MA (Exp : Node_Id) return Node_Id;
-- Given an expression Exp, if the root type is Float or Long_Float, -- Given an expression Exp, if the root type is Float or Long_Float,
...@@ -7644,6 +7636,7 @@ package body Exp_Ch4 is ...@@ -7644,6 +7636,7 @@ package body Exp_Ch4 is
function Wrap_MA (Exp : Node_Id) return Node_Id is function Wrap_MA (Exp : Node_Id) return Node_Id is
Loc : constant Source_Ptr := Sloc (Exp); Loc : constant Source_Ptr := Sloc (Exp);
begin begin
if Rtyp = Standard_Float or else Rtyp = Standard_Long_Float then if Rtyp = Standard_Float or else Rtyp = Standard_Long_Float then
return return
...@@ -7656,6 +7649,18 @@ package body Exp_Ch4 is ...@@ -7656,6 +7649,18 @@ package body Exp_Ch4 is
end if; end if;
end Wrap_MA; end Wrap_MA;
-- Local variables
Base : Node_Id;
Ent : Entity_Id;
Etyp : Entity_Id;
Exp : Node_Id;
Exptyp : Entity_Id;
Expv : Uint;
Rent : RE_Id;
Temp : Node_Id;
Xnode : Node_Id;
-- Start of processing for Expand_N_Op_Expon -- Start of processing for Expand_N_Op_Expon
begin begin
...@@ -10784,8 +10789,8 @@ package body Exp_Ch4 is ...@@ -10784,8 +10789,8 @@ package body Exp_Ch4 is
if not Comes_From_Source (N) if not Comes_From_Source (N)
and then Is_Interface (Designated_Type (Target_Type)) and then Is_Interface (Designated_Type (Target_Type))
and then Nkind (Original_Node (N)) = N_Attribute_Reference and then Nkind (Original_Node (N)) = N_Attribute_Reference
and then and then Attribute_Name (Original_Node (N)) =
Attribute_Name (Original_Node (N)) = Name_Unrestricted_Access Name_Unrestricted_Access
then then
null; null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment