diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2015-05-26 10:08:03 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2015-05-26 10:08:03 +0200 |
commit | 551e193501cebca18c19ed9ede7df7c2ee0bd9a6 (patch) | |
tree | 529415daf1214f9cb6bb79ad644b75095121f187 /gcc/ada/sem_ch4.adb | |
parent | 07aa5e6fa1e8bbee4a3ba080d449deb24f0d647e (diff) | |
download | gcc-551e193501cebca18c19ed9ede7df7c2ee0bd9a6.zip gcc-551e193501cebca18c19ed9ede7df7c2ee0bd9a6.tar.gz gcc-551e193501cebca18c19ed9ede7df7c2ee0bd9a6.tar.bz2 |
[multiple changes]
2015-05-26 Gary Dismukes <dismukes@adacore.com>
* einfo.ads, sem_util.adb, sem_ch4.adb: Minor reformatting.
2015-05-26 Robert Dewar <dewar@adacore.com>
* exp_unst.adb, exp_unst.ads: Change to using Subps table index for
making AREC entity names unique.
2015-05-26 Ed Schonberg <schonberg@adacore.com>
* sem_cat.adb (Has_Stream_Attribute_Definition): If the type
has aspect specifications, examine the corresponding list of
representation items to determine whether there is a visible
stream operation. The attribute definition clause generated from
the aspect will be inserted at the freeze point of the type,
which may be in the private part and not directly visible,
but the aspect makes the operation available to a client.
From-SVN: r223663
Diffstat (limited to 'gcc/ada/sem_ch4.adb')
-rw-r--r-- | gcc/ada/sem_ch4.adb | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/gcc/ada/sem_ch4.adb b/gcc/ada/sem_ch4.adb index e87af41..03fec8b 100644 --- a/gcc/ada/sem_ch4.adb +++ b/gcc/ada/sem_ch4.adb @@ -916,30 +916,30 @@ package body Sem_Ch4 is ---------------------------- -- The identification of conflicts in calls to functions with writable - -- actuals is performed in the analysis phase of the frontend to ensure + -- actuals is performed in the analysis phase of the front end to ensure -- that it reports exactly the same errors compiling with and without -- expansion enabled. It is performed in two stages: - -- 1) When a call to a function with out-mode parameters is found - -- we climb to the outermost enclosing construct which can be + -- 1) When a call to a function with out-mode parameters is found, + -- we climb to the outermost enclosing construct that can be -- evaluated in arbitrary order and we mark it with the flag -- Check_Actuals. - -- 2) When the analysis of the marked node is complete then we - -- traverse its decorated subtree searching for conflicts - -- (see function Sem_Util.Check_Function_Writable_Actuals). + -- 2) When the analysis of the marked node is complete, we traverse + -- its decorated subtree searching for conflicts (see function + -- Sem_Util.Check_Function_Writable_Actuals). - -- The unique exception to this general rule are aggregates, since - -- their analysis is performed by the frontend in the resolution - -- phase. For aggregates we do not climb to its enclosing construct: + -- The unique exception to this general rule is for aggregates, since + -- their analysis is performed by the front end in the resolution + -- phase. For aggregates we do not climb to their enclosing construct: -- we restrict the analysis to the subexpressions initializing the -- aggregate components. -- This implies that the analysis of expressions containing aggregates - -- is not complete since there may be conflicts on writable actuals + -- is not complete, since there may be conflicts on writable actuals -- involving subexpressions of the enclosing logical or arithmetic -- expressions. However, we cannot wait and perform the analysis when - -- the whole subtree is resolved since the subtrees may be transformed + -- the whole subtree is resolved, since the subtrees may be transformed, -- thus adding extra complexity and computation cost to identify and -- report exactly the same errors compiling with and without expansion -- enabled. @@ -948,9 +948,9 @@ package body Sem_Ch4 is function Is_Arbitrary_Evaluation_Order_Construct (N : Node_Id) return Boolean; - -- Return True if N is an Ada construct which may evaluate in - -- arbitrary order. This function does not cover all the language - -- constructs which can be evaluated in arbitrary order but the + -- Return True if N is an Ada construct which may be evaluated in + -- an arbitrary order. This function does not cover all the language + -- constructs that can be evaluated in arbitrary order, but only the -- subset needed for AI05-0144. --------------------------------------------- @@ -1003,11 +1003,11 @@ package body Sem_Ch4 is begin while Present (P) loop - -- For object declarations we can climb to such node from + -- For object declarations we can climb to the node from -- its object definition branch or from its initializing -- expression. We prefer to mark the child node as the -- outermost construct to avoid adding further complexity - -- to the routine which will take care later of + -- to the routine that will later take care of -- performing the writable actuals check. if Is_Arbitrary_Evaluation_Order_Construct (P) @@ -1407,8 +1407,8 @@ package body Sem_Ch4 is Check_Writable_Actuals (N); - -- If found and the outermost construct which can be evaluated in - -- arbitrary order is precisely this call then check all its + -- If found and the outermost construct that can be evaluated in + -- an arbitrary order is precisely this call, then check all its -- actuals. if Check_Actuals (N) then |