aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch9.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2011-09-06 10:03:04 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2011-09-06 10:03:04 +0200
commitb8a93198c2286edd6954930696ff8c1a6607785b (patch)
tree0d77cbf42032e7764049477aa84fc9ea89b94cc7 /gcc/ada/sem_ch9.adb
parentebf494ec2813a1adf5e0b060b12da6864b8932dd (diff)
downloadgcc-b8a93198c2286edd6954930696ff8c1a6607785b.zip
gcc-b8a93198c2286edd6954930696ff8c1a6607785b.tar.gz
gcc-b8a93198c2286edd6954930696ff8c1a6607785b.tar.bz2
[multiple changes]
2011-09-06 Steve Baird <baird@adacore.com> * einfo.ads (Extra_Accessibility): Update associated comment to use the term "present" correctly ("present" just means that it is not an error to query the value of the attribute - it does not imply that the value must be non-null). (Extra_Constrained): Ditto. (Is_Visible_Formal): Ditto. (Extra_Accessibility_Of_Result) Ditto; also add Inline pragma. (Set_Extra_Accessibility_Of_Result): Add Inline pragma. * exp_ch4.adb (Expand_Allocator_Expression): Improve a comment. * exp_ch6.adb (Expand_Call): The callee may require an Extra_Accessibility_Of_Result actual parameter even if Ada_Version < Ada_2012. This can occur if the callee is exported from a Gnat runtimes unit. Also improve a comment. 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com> * exp_ch7.adb: Add with and use clauses for Get_Targ. (Alignment_Of): Rename formal parameter Some_Typ to Typ, update related comment. Use the allocator alignment on strict alignment targets such as SPARC. (Double_Alignment_Of): Rename formal parameter Some_Typ to Typ, update related comment. 2011-09-06 Gary Dismukes <dismukes@adacore.com> * sem_ch9.adb (Check_Interfaces): Test Is_Limited_Type rather than Is_Limited_Record when checking that the partial view of a synchronized full view must be limited. 2011-09-06 Emmanuel Briot <briot@adacore.com> * g-comlin.adb (Free): Fix memory leak. From-SVN: r178569
Diffstat (limited to 'gcc/ada/sem_ch9.adb')
-rw-r--r--gcc/ada/sem_ch9.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/sem_ch9.adb b/gcc/ada/sem_ch9.adb
index 5fbb0ec..b4a4c45 100644
--- a/gcc/ada/sem_ch9.adb
+++ b/gcc/ada/sem_ch9.adb
@@ -2381,7 +2381,7 @@ package body Sem_Ch9 is
-- declaration must be limited.
if Present (Interface_List (N))
- and then not Is_Limited_Record (Priv_T)
+ and then not Is_Limited_Type (Priv_T)
then
Error_Msg_Sloc := Sloc (Priv_T);
Error_Msg_N ("(Ada 2005) limited type declaration expected for " &