From 9b2fa50387730ce33a9541f77ed47f2974680d5d Mon Sep 17 00:00:00 2001 From: charlet Date: Mon, 29 Aug 2011 10:29:09 +0000 Subject: 2011-08-29 Robert Dewar * sem_ch8.adb: Minor reformatting. 2011-08-29 Bob Duff * par-ch2.adb (P_Identifier): Warn that "some" is reserved in Ada 2012. * par-ch4.adb (P_Quantified_Expression): Remove unnecessary code for treating "some" as unreserved in earlier Ada versions. This is now handled in Snames.Is_Keyword_Name. Parse "for some" using Tok_Some, rather than Name_Some, since Tok_Some is now recognized as reserved. * scans.adb (Initialize_Ada_Keywords): Handle Tok_Some like any other reserved word. * scans.ads: Minor comment fixes. * snames.adb-tmpl (Is_Keyword_Name): Handle Ada 2012 reserved words as for other language versions. * scn.adb (Scan_Reserved_Identifier): Remove unnecessary code for treating "some" as unreserved in earlier Ada versions. This is now handled in Snames.Is_Keyword_Name. * par-ch3.adb (P_Defining_Identifier): Warn that "some" is reserved in Ada 2012. (P_Subtype_Mark_Resync): Remove unnecessary code for treating "some" as unreserved in earlier Ada versions. This is now handled in Snames.Is_Keyword_Name. * snames.ads-tmpl (Ada_2012_Reserved_Words): Handle Ada 2012 reserved words as for other language versions. * gnat_ugn.texi (-gnatwy): Fix documentation: this switch applies to Ada 2012, not just Ada 2005. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178191 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ada/scans.ads | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gcc/ada/scans.ads') diff --git a/gcc/ada/scans.ads b/gcc/ada/scans.ads index 137f616ccc2..ca2a5bb904e 100644 --- a/gcc/ada/scans.ads +++ b/gcc/ada/scans.ads @@ -47,7 +47,7 @@ package Scans is -- Note: Namet.Is_Keyword_Name depends on the fact that the first entry in -- this type declaration is *not* for a reserved word. For details on why - -- there is this requirement, see Scans.Initialize_Ada_Keywords. + -- there is this requirement, see Initialize_Ada_Keywords below. type Token_Type is ( @@ -341,7 +341,9 @@ package Scans is -- Flag array used to test for reserved word procedure Initialize_Ada_Keywords; - -- Set up Token_Type values in Names table entries for Ada reserved words + -- Set up Token_Type values in Names table entries for Ada reserved + -- words. This ignores Ada_Version; Ada_Version is taken into account in + -- Snames.Is_Keyword_Name. -------------------------- -- Scan State Variables -- -- cgit v1.2.1