aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch5.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2010-10-26 15:05:30 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2010-10-26 15:05:30 +0200
commit0592046e2397a7206383190f84017e9bbe1dd7bc (patch)
tree84180c9964f9e5e162ea1c8f5517138d11181e87 /gcc/ada/sem_ch5.adb
parent880dabb586a7da7a9198319daef82bf87df7422c (diff)
downloadgcc-0592046e2397a7206383190f84017e9bbe1dd7bc.zip
gcc-0592046e2397a7206383190f84017e9bbe1dd7bc.tar.gz
gcc-0592046e2397a7206383190f84017e9bbe1dd7bc.tar.bz2
[multiple changes]
2010-10-26 Javier Miranda <miranda@adacore.com> * sem_prag.adb (Process_Import_Or_Interface): Skip primitives of interface types when processing all the entities in the homonym chain that are declared in the same declarative part. 2010-10-26 Ed Schonberg <schonberg@adacore.com> * sem_ch3.adb (Process_Range_In_Decl): If the range is part of a quantified expression, the insertion point for range checks will be arbitrarily far in the tree. * sem_ch5.adb (One_Bound): Use Insert_Actions for the declaration of the temporary that holds the value of the bounds. * sem_res.adb (Resolve_Quantified_Expressions): Disable expansion of condition until the full expression is expanded. From-SVN: r165957
Diffstat (limited to 'gcc/ada/sem_ch5.adb')
-rw-r--r--gcc/ada/sem_ch5.adb7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ada/sem_ch5.adb b/gcc/ada/sem_ch5.adb
index 5edc342..68305d6 100644
--- a/gcc/ada/sem_ch5.adb
+++ b/gcc/ada/sem_ch5.adb
@@ -1538,8 +1538,11 @@ package body Sem_Ch5 is
Object_Definition => New_Occurrence_Of (Typ, Loc),
Expression => Relocate_Node (Original_Bound));
- Insert_Before (Parent (N), Decl);
- Analyze (Decl);
+ -- Insert declaration at proper place. If loop comes from an
+ -- enclosing quantified expression, the insertion point is
+ -- arbitrarily far up in the tree.
+
+ Insert_Action (Parent (N), Decl);
Rewrite (Original_Bound, New_Occurrence_Of (Id, Loc));
return Expression (Decl);
end if;