diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2017-01-13 11:01:38 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2017-01-13 11:01:38 +0100 |
commit | 66340e0e9a029aa5cbba0e63f66e5319c1286ce4 (patch) | |
tree | 12f33f495cd3ec7d0d45593615bbbfd492d8805c /gcc/ada/sem_util.ads | |
parent | 27bb79414764b83bf6c7208d6081afd01f98869f (diff) | |
download | gcc-66340e0e9a029aa5cbba0e63f66e5319c1286ce4.zip gcc-66340e0e9a029aa5cbba0e63f66e5319c1286ce4.tar.gz gcc-66340e0e9a029aa5cbba0e63f66e5319c1286ce4.tar.bz2 |
[multiple changes]
2017-01-13 Tristan Gingold <gingold@adacore.com>
* s-mmap.adb, s-mmap.ads (Open_Read_No_Exception): New function.
(Open_Read): Re-implement using Open_Read_No_Exception.
(Open_Write): Raise exception in case of error.
* s-mmosin-mingw.adb (Open_Common): Do not raise exception.
* s-mmosin-unix.adb (Open_Read, Open_Write): Do not
reaise exception.
* s-mmosin-mingw.ads, s-mmosin-unix.ads (Open_Read): Adjust comment.
2017-01-13 Yannick Moy <moy@adacore.com>
* checks.adb: Code cleanup.
2017-01-13 Yannick Moy <moy@adacore.com>
* freeze.adb (Check_Inherited_Conditions): Use analyzed pragma
expression instead of unanalyzed aspect expression for checking
the validity of inheriting an operation. Also copy the expression
being passing it to Build_Class_Wide_Expression, as this call
modifies its argument.
* sem_util.ads Fix comment to reference correct function name
New_Copy_Tree.
2017-01-13 Javier Miranda <miranda@adacore.com>
* sem_res.adb (Resolve_Generalized_Indexing): Compiling in ASIS mode,
when we propagate information about the indexes back to the original
indexing mode and the prefix of the index is a function call, do not
remove any parameter from such call.
2017-01-13 Gary Dismukes <dismukes@adacore.com>
* exp_ch6.ads (Needs_BIP_Finalization_Master): Update comment.
* exp_ch6.adb (Needs_BIP_Finalization_Master): Return True for
a build-in-place function whose result type is tagged.
2017-01-13 Yannick Moy <moy@adacore.com>
* sem_ch8.adb (Analyze_Subprogram_Renaming.Build_Class_Wide_Wrapper):
Do not generate a wrapper when the only candidate is a class-wide
subprogram.
(Analyze_Subprogram_Renaming): Do not freeze the renaming or renamed
inside a generic context.
From-SVN: r244399
Diffstat (limited to 'gcc/ada/sem_util.ads')
-rw-r--r-- | gcc/ada/sem_util.ads | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/gcc/ada/sem_util.ads b/gcc/ada/sem_util.ads index 2088e7f..1e84fa5 100644 --- a/gcc/ada/sem_util.ads +++ b/gcc/ada/sem_util.ads @@ -1849,21 +1849,21 @@ package Sem_Util is Map : Elist_Id := No_Elist; New_Sloc : Source_Ptr := No_Location; New_Scope : Entity_Id := Empty) return Node_Id; - -- Given a node that is the root of a subtree, Copy_Tree copies the entire - -- syntactic subtree, including recursively any descendants whose parent - -- field references a copied node (descendants not linked to a copied node - -- by the parent field are not copied, instead the copied tree references - -- the same descendant as the original in this case, which is appropriate - -- for non-syntactic fields such as Etype). The parent pointers in the - -- copy are properly set. Copy_Tree (Empty/Error) returns Empty/Error. - -- The one exception to the rule of not copying semantic fields is that - -- any implicit types attached to the subtree are duplicated, so that - -- the copy contains a distinct set of implicit type entities. Thus this - -- function is used when it is necessary to duplicate an analyzed tree, - -- declared in the same or some other compilation unit. This function is - -- declared here rather than in atree because it uses semantic information - -- in particular concerning the structure of itypes and the generation of - -- public symbols. + -- Given a node that is the root of a subtree, New_Copy_Tree copies the + -- entire syntactic subtree, including recursively any descendants whose + -- parent field references a copied node (descendants not linked to a + -- copied node by the parent field are not copied, instead the copied tree + -- references the same descendant as the original in this case, which is + -- appropriate for non-syntactic fields such as Etype). The parent pointers + -- in the copy are properly set. New_Copy_Tree (Empty/Error) returns + -- Empty/Error. The one exception to the rule of not copying semantic + -- fields is that any implicit types attached to the subtree are + -- duplicated, so that the copy contains a distinct set of implicit type + -- entities. Thus this function is used when it is necessary to duplicate + -- an analyzed tree, declared in the same or some other compilation unit. + -- This function is declared here rather than in atree because it uses + -- semantic information in particular concerning the structure of itypes + -- and the generation of public symbols. -- The Map argument, if set to a non-empty Elist, specifies a set of -- mappings to be applied to entities in the tree. The map has the form: |