summaryrefslogtreecommitdiff
path: root/gcc/ada/par-tchk.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-31 18:03:53 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-31 18:03:53 +0000
commit89821a0e4801f8030b39a3d98d0963b05be3e74a (patch)
treef085e00a74f2161d4b10ab5693337fc1ea304178 /gcc/ada/par-tchk.adb
parent8d4b0ea57797a7c2ef391b98ab1c13416245c7a9 (diff)
downloadgcc-89821a0e4801f8030b39a3d98d0963b05be3e74a.tar.gz
2006-10-31 Robert Dewar <dewar@adacore.com>
Javier Miranda <miranda@adacore.com> * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses (P_Type_Declaration): Remove barrier against the reserved word "limited" after "abstract" to give support to the new syntax of AARM 3.4 (2/2). (P_Type_Declaration): Minor code cleanup. Add support for synchronized private extensions. (P_Type_Declaration): Add the new actual Abstract_Present to every call to P_Interface_Type_Definition. (P_Interface_Type_Definition): Addition of one formal to report an error if the reserved word abstract has been previously found. (P_Identifier_Declarations): Update grammar rules. Handle parsing of an object renaming declaration with an access definition or subtype mark with a possible null exclusion. * par-ch9.adb: Minor error msg fix * par-load.adb: Add missing continuation mark to error msg * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118290 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/par-tchk.adb')
-rw-r--r--gcc/ada/par-tchk.adb13
1 files changed, 4 insertions, 9 deletions
diff --git a/gcc/ada/par-tchk.adb b/gcc/ada/par-tchk.adb
index ab87e88f800..01ade90ee81 100644
--- a/gcc/ada/par-tchk.adb
+++ b/gcc/ada/par-tchk.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2005, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2006, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -795,17 +795,12 @@ package body Tchk is
-----------------
procedure Wrong_Token (T : Token_Type; P : Position) is
- Missing : constant String := "missing ";
- Image : constant String := Token_Type'Image (T);
+ Missing : constant String := "missing ";
+ Image : constant String := Token_Type'Image (T);
Tok_Name : constant String := Image (5 .. Image'Length);
- M : String (1 .. Missing'Length + Tok_Name'Length);
+ M : constant String := Missing & Tok_Name;
begin
- -- Set M to Missing & Tok_Name
-
- M (1 .. Missing'Length) := Missing;
- M (Missing'Length + 1 .. M'Last) := Tok_Name;
-
if Token = Tok_Semicolon then
Scan;