From: Arnaud Charlet Date: Tue, 25 Apr 2017 12:08:24 +0000 (+0200) Subject: Code cleanups. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0bcee2755848bd10da9be41b00eeafef8cb65bc5;p=gcc.git Code cleanups. From-SVN: r247205 --- diff --git a/gcc/ada/exp_ch4.adb b/gcc/ada/exp_ch4.adb index a6e1785991b..658c3d8fbea 100644 --- a/gcc/ada/exp_ch4.adb +++ b/gcc/ada/exp_ch4.adb @@ -7616,20 +7616,12 @@ package body Exp_Ch4 is ----------------------- procedure Expand_N_Op_Expon (N : Node_Id) is - Loc : constant Source_Ptr := Sloc (N); - Typ : constant Entity_Id := Etype (N); - Rtyp : constant Entity_Id := Root_Type (Typ); - Base : Node_Id; - Bastyp : Node_Id; - Exp : Node_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; + Loc : constant Source_Ptr := Sloc (N); + Ovflo : constant Boolean := Do_Overflow_Check (N); + Typ : constant Entity_Id := Etype (N); + Rtyp : constant Entity_Id := Root_Type (Typ); + + Bastyp : Entity_Id; function Wrap_MA (Exp : Node_Id) return Node_Id; -- Given an expression Exp, if the root type is Float or Long_Float, @@ -7644,6 +7636,7 @@ package body Exp_Ch4 is function Wrap_MA (Exp : Node_Id) return Node_Id is Loc : constant Source_Ptr := Sloc (Exp); + begin if Rtyp = Standard_Float or else Rtyp = Standard_Long_Float then return @@ -7656,6 +7649,18 @@ package body Exp_Ch4 is end if; 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 begin @@ -10784,8 +10789,8 @@ package body Exp_Ch4 is if not Comes_From_Source (N) and then Is_Interface (Designated_Type (Target_Type)) and then Nkind (Original_Node (N)) = N_Attribute_Reference - and then - Attribute_Name (Original_Node (N)) = Name_Unrestricted_Access + and then Attribute_Name (Original_Node (N)) = + Name_Unrestricted_Access then null;