summaryrefslogtreecommitdiff
path: root/gcc/ada/exp_ch3.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2013-04-11 13:05:15 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2013-04-11 13:05:15 +0000
commitb1961352f8a233483f9c78243df85f7cf8dc1084 (patch)
tree586696a09f1e8fd2562fd8e4f69f74541094b414 /gcc/ada/exp_ch3.adb
parent61ce7f9fef885aa5bcd88f971d71e966b7fa4716 (diff)
downloadgcc-b1961352f8a233483f9c78243df85f7cf8dc1084.tar.gz
2013-04-11 Doug Rupp <rupp@adacore.com>
* gnatlink.adb: Fold program basename to lower case on VMS for consistency. 2013-04-11 Matthew Heaney <heaney@adacore.com> * a-rbtgbo.adb (Generic_Equal): Initialize Result variable before entering loop. 2013-04-11 Arnaud Charlet <charlet@adacore.com> * xgnatugn.adb: Remove dead code (handling of @ifset/@ifclear). 2013-04-11 Arnaud Charlet <charlet@adacore.com> * gnat_ugn.texi: Remove some use of ifset in menus. Not strictly needed, and seems to confuse some versions of makeinfo. 2013-04-11 Javier Miranda <miranda@adacore.com> * einfo.adb (Is_Thunk): Remove assertion. (Set_Is_Thunk): Add assertion. * einfo.ads (Is_Thunk): Complete documentation. * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Code cleanup. * exp_ch3.ad[sb] (Is_Variable_Size_Array): Moved to sem_util (Is_Variable_Size_Record): Moved to sem_util * exp_ch6.adb (Expand_Call): Code cleanup. (Expand_N_Extended_Return_Statement): Code cleanup. (Expand_Simple_Function_Return): Code cleanup. * exp_disp.adb Remove dependency on exp_ch3 (Expand_Interface_Thunk): Add minimum decoration needed to set attribute Is_Thunk. * sem_ch3.ad[sb] (Is_Constant_Bound): moved to sem_util * sem_util.ad[sb] (Is_Constant_Bound): Moved from sem_ch3 (Is_Variable_Size_Array): Moved from exp_ch3 (Is_Variable_Size_Record): Moved from exp_ch3 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197787 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/exp_ch3.adb')
-rw-r--r--gcc/ada/exp_ch3.adb66
1 files changed, 0 insertions, 66 deletions
diff --git a/gcc/ada/exp_ch3.adb b/gcc/ada/exp_ch3.adb
index 6369d44e4df..5637c2ff754 100644
--- a/gcc/ada/exp_ch3.adb
+++ b/gcc/ada/exp_ch3.adb
@@ -229,9 +229,6 @@ package body Exp_Ch3 is
function Is_User_Defined_Equality (Prim : Node_Id) return Boolean;
-- Returns true if Prim is a user defined equality function
- function Is_Variable_Size_Array (E : Entity_Id) return Boolean;
- -- Returns true if E has variable size components
-
function Make_Eq_Body
(Typ : Entity_Id;
Eq_Name : Name_Id) return Node_Id;
@@ -8311,69 +8308,6 @@ package body Exp_Ch3 is
and then Base_Type (Etype (Prim)) = Standard_Boolean;
end Is_User_Defined_Equality;
- ----------------------------
- -- Is_Variable_Size_Array --
- ----------------------------
-
- function Is_Variable_Size_Array (E : Entity_Id) return Boolean is
- Idx : Node_Id;
-
- begin
- pragma Assert (Is_Array_Type (E));
-
- -- Check if some index is initialized with a non-constant value
-
- Idx := First_Index (E);
- while Present (Idx) loop
- if Nkind (Idx) = N_Range then
- if not Is_Constant_Bound (Low_Bound (Idx))
- or else not Is_Constant_Bound (High_Bound (Idx))
- then
- return True;
- end if;
- end if;
-
- Idx := Next_Index (Idx);
- end loop;
-
- return False;
- end Is_Variable_Size_Array;
-
- -----------------------------
- -- Is_Variable_Size_Record --
- -----------------------------
-
- function Is_Variable_Size_Record (E : Entity_Id) return Boolean is
- Comp : Entity_Id;
- Comp_Typ : Entity_Id;
-
- begin
- pragma Assert (Is_Record_Type (E));
-
- Comp := First_Entity (E);
- while Present (Comp) loop
- Comp_Typ := Etype (Comp);
-
- -- Recursive call if the record type has discriminants
-
- if Is_Record_Type (Comp_Typ)
- and then Has_Discriminants (Comp_Typ)
- and then Is_Variable_Size_Record (Comp_Typ)
- then
- return True;
-
- elsif Is_Array_Type (Comp_Typ)
- and then Is_Variable_Size_Array (Comp_Typ)
- then
- return True;
- end if;
-
- Next_Entity (Comp);
- end loop;
-
- return False;
- end Is_Variable_Size_Record;
-
----------------------------------------
-- Make_Controlling_Function_Wrappers --
----------------------------------------