aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_util.adb
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2014-02-20 13:38:06 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2014-02-20 14:38:06 +0100
commite449429213d601e60b19d1d5db6dd761df98c2c5 (patch)
treececff9bfdd85fd8f02159f7941edbadfef64e28c /gcc/ada/sem_util.adb
parent9576e7b112cad4adb1f9f37d913b7161640808d8 (diff)
downloadgcc-e449429213d601e60b19d1d5db6dd761df98c2c5.zip
gcc-e449429213d601e60b19d1d5db6dd761df98c2c5.tar.gz
gcc-e449429213d601e60b19d1d5db6dd761df98c2c5.tar.bz2
einfo.ads: Minor comment addition: Etype of package is Standard_Void_Type.
2014-02-20 Robert Dewar <dewar@adacore.com> * einfo.ads: Minor comment addition: Etype of package is Standard_Void_Type. * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb, exp_dbug.adb, exp_disp.adb, exp_imgv.adb, exp_intr.adb, exp_prag.adb, exp_sel.adb, exp_strm.adb, exp_util.adb, freeze.adb, rtsfind.adb, sem_aggr.adb, sem_attr.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_dim.adb, sem_prag.adb, sem_res.adb, sem_util.adb, tbuild.adb, tbuild.ads: Remove New_Reference_To. Replace all calls with calls to New_Occurrence_Of. 2014-02-20 Robert Dewar <dewar@adacore.com> * par-util.adb (Ignore, case of right paren): Make this a serious error. From-SVN: r207942
Diffstat (limited to 'gcc/ada/sem_util.adb')
-rw-r--r--gcc/ada/sem_util.adb8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb
index a53e245..5062e7e 100644
--- a/gcc/ada/sem_util.adb
+++ b/gcc/ada/sem_util.adb
@@ -710,7 +710,7 @@ package body Sem_Util is
Loc := Sloc (N);
if Nkind (N) = N_Defining_Identifier then
- Obj := New_Reference_To (N, Loc);
+ Obj := New_Occurrence_Of (N, Loc);
-- If this is a formal parameter of a subprogram declaration, and
-- we are compiling the body, we want the declaration for the
@@ -808,7 +808,7 @@ package body Sem_Util is
Defining_Identifier => Subt,
Subtype_Indication =>
Make_Subtype_Indication (Loc,
- Subtype_Mark => New_Reference_To (T, Loc),
+ Subtype_Mark => New_Occurrence_Of (T, Loc),
Constraint =>
Make_Index_Or_Discriminant_Constraint (Loc,
Constraints => Constraints)));
@@ -1038,7 +1038,7 @@ package body Sem_Util is
Defining_Identifier => Subt,
Subtype_Indication =>
Make_Subtype_Indication (Loc,
- Subtype_Mark => New_Reference_To (Base_Type (T), Loc),
+ Subtype_Mark => New_Occurrence_Of (Base_Type (T), Loc),
Constraint =>
Make_Index_Or_Discriminant_Constraint (Loc,
Constraints => C)));
@@ -3874,7 +3874,7 @@ package body Sem_Util is
In_Present => In_Present (Parent (Formal)),
Out_Present => Out_Present (Parent (Formal)),
Parameter_Type =>
- New_Reference_To (Etype (Formal), Loc),
+ New_Occurrence_Of (Etype (Formal), Loc),
Expression =>
New_Copy_Tree (Expression (Parent (Formal)))),
Plist);