From 1c28fe3afee2a7dde65f9aa96560d0170af3aae7 Mon Sep 17 00:00:00 2001 From: Robert Dewar Date: Wed, 6 Jun 2007 12:23:26 +0200 Subject: sinput.ads, [...] (Unlock): New procedure. 2007-04-20 Robert Dewar * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb, sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads, elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure. Fix lower bound of tables. Add rep clauses. * nlists.adb: Ditto. (Prev_Node, Next_Node): Change index type to Int so that it properly covers the range First_Node_Id - 1 up. From-SVN: r125391 --- gcc/ada/sinput.adb | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'gcc/ada/sinput.adb') diff --git a/gcc/ada/sinput.adb b/gcc/ada/sinput.adb index 7efc71a..616b73d 100644 --- a/gcc/ada/sinput.adb +++ b/gcc/ada/sinput.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2006, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2007, 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- -- @@ -35,7 +35,6 @@ pragma Style_Checks (All_Checks); -- Subprograms not all in alpha order with Debug; use Debug; -with Namet; use Namet; with Opt; use Opt; with Output; use Output; with Tree_IO; use Tree_IO; @@ -575,8 +574,8 @@ package body Sinput is -------------------------------- procedure Register_Source_Ref_Pragma - (File_Name : Name_Id; - Stripped_File_Name : Name_Id; + (File_Name : File_Name_Type; + Stripped_File_Name : File_Name_Type; Mapped_Line : Nat; Line_After_Pragma : Physical_Line_Number) is @@ -587,7 +586,7 @@ package body Sinput is ML : Logical_Line_Number; begin - if File_Name /= No_Name then + if File_Name /= No_File then SFR.Reference_Name := Stripped_File_Name; SFR.Full_Ref_Name := File_Name; @@ -1202,6 +1201,16 @@ package body Sinput is Source_File.Table (S).Lines_Table_Max := Physical_Line_Number (Max); end Trim_Lines_Table; + ------------ + -- Unlock -- + ------------ + + procedure Unlock is + begin + Source_File.Locked := False; + Source_File.Release; + end Unlock; + -------- -- wl -- -------- -- cgit v1.1