summaryrefslogtreecommitdiff
path: root/gcc/ada/sinput.ads
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-29 23:10:21 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-29 23:10:21 +0000
commit465d2c29f2cac038c9bced6b4e5ff8d4cbb8b23d (patch)
tree1eb925fe9ac0daa64343cebeedf8d15f314f4a29 /gcc/ada/sinput.ads
parent0aacee88c7ffff8e058168bf81abf7113ffc860d (diff)
downloadgcc-465d2c29f2cac038c9bced6b4e5ff8d4cbb8b23d.tar.gz
Revert
2009-04-29 Vincent Celier <celier@adacore.com> * sinput-l.adb (Load_File): When preprocessing, set temporarily the Source_File_Index_Table entries for the source, to avoid crash when reporting an error. * gnatcmd.adb (Test_If_Relative_Path): Use Makeutl.Test_If_Relative_Path. * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if Including_RTS is True. * makeutl.ads (Test_If_Relative_Path): New Boolean parameter Including_RTS defaulted to False. * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with a default value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146991 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sinput.ads')
-rw-r--r--gcc/ada/sinput.ads6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/ada/sinput.ads b/gcc/ada/sinput.ads
index ca97716145e..e2e4ec0d67f 100644
--- a/gcc/ada/sinput.ads
+++ b/gcc/ada/sinput.ads
@@ -423,10 +423,8 @@ package Sinput is
-- Global Data --
-----------------
- Current_Source_File : Source_File_Index := No_Source_File;
- -- Source_File table index of source file currently being scanned.
- -- Initialized so that some tools (such as gprbuild) can be built with
- -- -gnatVa and pragma Initialized_Scalars without problems.
+ Current_Source_File : Source_File_Index;
+ -- Source_File table index of source file currently being scanned
Current_Source_Unit : Unit_Number_Type;
-- Unit number of source file currently being scanned. The special value