aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/exp_ch4.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2017-04-25 15:58:36 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2017-04-25 15:58:36 +0200
commite0666fc62f436b35e9ad3b806cb081d95f2f66c6 (patch)
tree3907423b9fe4823d28c7700b2b8e7544d5ceda0c /gcc/ada/exp_ch4.adb
parent5ca28c1d5f5f8c435d534ed6142e8215b0babb65 (diff)
downloadgcc-e0666fc62f436b35e9ad3b806cb081d95f2f66c6.zip
gcc-e0666fc62f436b35e9ad3b806cb081d95f2f66c6.tar.gz
gcc-e0666fc62f436b35e9ad3b806cb081d95f2f66c6.tar.bz2
[multiple changes]
2017-04-25 Gary Dismukes <dismukes@adacore.com> * exp_util.adb, exp_ch4.adb: Minor reformatting. 2017-04-25 Hristian Kirtchev <kirtchev@adacore.com> * checks.adb: Code clean up in various routines. (Generate_Range_Check): Do not generate a range check when the expander is not active or when index/range checks are suppressed on the target type. (Insert_List_After_And_Analyze, Insert_List_Before_And_Analyze): Remove variants that include a Supress parameter. These routines are never used, and were introduced before the current scope-based check suppression method. 2017-04-25 Vasiliy Fofanov <fofanov@adacore.com> * prj-part.adb, cstreams.c, osint.adb, osint.ads: Remove VMS specific code and some subprogram calls that are now noop. From-SVN: r247242
Diffstat (limited to 'gcc/ada/exp_ch4.adb')
-rw-r--r--gcc/ada/exp_ch4.adb9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/ada/exp_ch4.adb b/gcc/ada/exp_ch4.adb
index dfbdfd2..f547799 100644
--- a/gcc/ada/exp_ch4.adb
+++ b/gcc/ada/exp_ch4.adb
@@ -4718,6 +4718,7 @@ package body Exp_Ch4 is
------------------------------
procedure Expand_N_Case_Expression (N : Node_Id) is
+
function Is_Copy_Type (Typ : Entity_Id) return Boolean;
-- Return True if we can copy objects of this type when expanding a case
-- expression.
@@ -4728,7 +4729,7 @@ package body Exp_Ch4 is
function Is_Copy_Type (Typ : Entity_Id) return Boolean is
begin
- -- if Minimize_Expression_With_Actions is True, we can afford to copy
+ -- If Minimize_Expression_With_Actions is True, we can afford to copy
-- large objects, as long as they are constrained and not limited.
return
@@ -4818,7 +4819,7 @@ package body Exp_Ch4 is
-- This approach avoids extra copies of potentially large objects. It
-- also allows handling of values of limited or unconstrained types.
- -- Note that we do the copy also for constrained, non limited types
+ -- Note that we do the copy also for constrained, nonlimited types
-- when minimizing expressions with actions (e.g. when generating C
-- code) since it allows us to do the optimization below in more cases.
@@ -4852,7 +4853,7 @@ package body Exp_Ch4 is
Target_Typ := Typ;
-- ??? Do not perform the optimization when the return statement is
- -- within a predicate function as this causes spurious errors. Could
+ -- within a predicate function, as this causes spurious errors. Could
-- this be a possible mismatch in handling this case somewhere else
-- in semantic analysis?
@@ -5479,7 +5480,7 @@ package body Exp_Ch4 is
end if;
-- Fall through here for either the limited expansion, or the case of
- -- inserting actions for non-limited types. In both these cases, we must
+ -- inserting actions for nonlimited types. In both these cases, we must
-- move the SLOC of the parent If statement to the newly created one and
-- change it to the SLOC of the expression which, after expansion, will
-- correspond to what is being evaluated.