summaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch4.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2015-05-27 15:19:35 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2015-05-27 15:19:35 +0200
commit0c6826a52305c4dadad3da2882f708e80638f100 (patch)
tree0960336918c6106d72f6f5e7ea2a310ab9c26532 /gcc/ada/sem_ch4.adb
parentfaae53f8ca3766da999534c342e00e5eeadd9f9d (diff)
downloadgcc-0c6826a52305c4dadad3da2882f708e80638f100.tar.gz
[multiple changes]
2015-05-26 Robert Dewar <dewar@adacore.com> * errout.ads, sem_ch4.adb, sem_ch6.adb: Minor reformatting. 2015-05-26 Bob Duff <duff@adacore.com> * sem_elab.adb (Check_A_Call): In the case where we're calling something in an instance of a generic package that is within this same unit (as the call), make sure we treat it as a call to an entity within the same unit. That is, call Check_Internal_Call, rather than putting "Elaborate_All(X)" on X, which would necessarily result in an elaboration cycle in static-elaboration mode. 2015-05-26 Eric Botcazou <ebotcazou@adacore.com> * freeze.ads (Is_Atomic_VFA_Aggregate): Adjust profile. * freeze.adb (Is_Atomic_VFA_Aggregate): Change Entity parameter into Node parameter and remove Type parameter. Look at Is_Atomic_Or_VFA both on the type and on the object. (Freeze_Entity): Adjust call to Is_Atomic_VFA_Aggregate. * exp_aggr.adb (Expand_Record_Aggregate): Likewise. (Process_Atomic_Independent_Shared_Volatile): Remove code propagating Atomic or VFA from object to locally-defined type. 2015-05-26 Bob Duff <duff@adacore.com> * exp_ch7.adb: Minor comment fix. From-SVN: r223751
Diffstat (limited to 'gcc/ada/sem_ch4.adb')
-rw-r--r--gcc/ada/sem_ch4.adb30
1 files changed, 15 insertions, 15 deletions
diff --git a/gcc/ada/sem_ch4.adb b/gcc/ada/sem_ch4.adb
index 1c0dbd9b723..b525e90a098 100644
--- a/gcc/ada/sem_ch4.adb
+++ b/gcc/ada/sem_ch4.adb
@@ -1968,10 +1968,10 @@ package body Sem_Ch4 is
end if;
-- An explicit dereference is a legal occurrence of an
- -- incomplete type imported through a limited_with clause,
- -- if the full view is visible, or if we are within an
- -- instance body, where the enclosing body has a regular
- -- with_clause on the unit.
+ -- incomplete type imported through a limited_with clause, if
+ -- the full view is visible, or if we are within an instance
+ -- body, where the enclosing body has a regular with_clause
+ -- on the unit.
if From_Limited_With (DT)
and then not From_Limited_With (Scope (DT))
@@ -2196,8 +2196,8 @@ package body Sem_Ch4 is
Get_First_Interp (Then_Expr, I, It);
while Present (It.Nam) loop
- -- Add possible intepretation of Then_Expr if no Else_Expr,
- -- or Else_Expr is present and has a compatible type.
+ -- Add possible intepretation of Then_Expr if no Else_Expr, or
+ -- Else_Expr is present and has a compatible type.
if No (Else_Expr)
or else Has_Compatible_Type (Else_Expr, It.Typ)
@@ -2224,8 +2224,8 @@ package body Sem_Ch4 is
U_N : Entity_Id;
procedure Process_Function_Call;
- -- Prefix in indexed component form is an overloadable entity,
- -- so the node is a function call. Reformat it as such.
+ -- Prefix in indexed component form is an overloadable entity, so the
+ -- node is a function call. Reformat it as such.
procedure Process_Indexed_Component;
-- Prefix in indexed component form is actually an indexed component.
@@ -2263,8 +2263,8 @@ package body Sem_Ch4 is
-- Move to next actual. Note that we use Next, not Next_Actual
-- here. The reason for this is a bit subtle. If a function call
- -- includes named associations, the parser recognizes the node as
- -- a call, and it is analyzed as such. If all associations are
+ -- includes named associations, the parser recognizes the node
+ -- as a call, and it is analyzed as such. If all associations are
-- positional, the parser builds an indexed_component node, and
-- it is only after analysis of the prefix that the construct
-- is recognized as a call, in which case Process_Function_Call
@@ -2398,7 +2398,7 @@ package body Sem_Ch4 is
elsif Is_Entity_Name (P)
and then Etype (P) = Standard_Void_Type
then
- Error_Msg_NE ("incorrect use of&", P, Entity (P));
+ Error_Msg_NE ("incorrect use of &", P, Entity (P));
else
Error_Msg_N ("array type required in indexed component", P);
@@ -2447,10 +2447,10 @@ package body Sem_Ch4 is
Exp := First (Exprs);
- -- If one index is present, and it is a subtype name, then the
- -- node denotes a slice (note that the case of an explicit range
- -- for a slice was already built as an N_Slice node in the first
- -- place, so that case is not handled here).
+ -- If one index is present, and it is a subtype name, then the node
+ -- denotes a slice (note that the case of an explicit range for a
+ -- slice was already built as an N_Slice node in the first place,
+ -- so that case is not handled here).
-- We use a replace rather than a rewrite here because this is one
-- of the cases in which the tree built by the parser is plain wrong.