summaryrefslogtreecommitdiffstats
path: root/gcc/ada/scans.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-29 13:39:13 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-29 13:39:13 +0000
commit147ce7fac36e1c7b44b3ee84d2eacf1071830d7b (patch)
tree6c58124deb450d5ef7fd5681c179c70fee9f5f88 /gcc/ada/scans.ads
parent294b942d56cb4d7f0f03ccf70294e48b90710e31 (diff)
downloadppe42-gcc-147ce7fac36e1c7b44b3ee84d2eacf1071830d7b.tar.gz
ppe42-gcc-147ce7fac36e1c7b44b3ee84d2eacf1071830d7b.zip
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. 2009-04-29 Javier Miranda <miranda@adacore.com> * gnat_ugn.texi: Adding documentation for non-default C++ constructors. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146967 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/scans.ads')
-rw-r--r--gcc/ada/scans.ads19
1 files changed, 11 insertions, 8 deletions
diff --git a/gcc/ada/scans.ads b/gcc/ada/scans.ads
index 1120f067b37..fbdc5cee41d 100644
--- a/gcc/ada/scans.ads
+++ b/gcc/ada/scans.ads
@@ -344,37 +344,40 @@ package Scans is
-- Note: these variables can only be referenced during the parsing of a
-- file. Reference to any of them from Sem or the expander is wrong.
+ -- Some of these variables are initialized so that some tools (such as
+ -- gprbuild) can be built with -gnatVa and pragma Initialized_Scalars
+ -- without problems.
- Scan_Ptr : Source_Ptr;
+ Scan_Ptr : Source_Ptr := No_Location;
-- Current scan pointer location. After a call to Scan, this points
-- just past the end of the token just scanned.
- Token : Token_Type;
+ Token : Token_Type := No_Token;
-- Type of current token
- Token_Ptr : Source_Ptr;
+ Token_Ptr : Source_Ptr := No_Location;
-- Pointer to first character of current token
- Current_Line_Start : Source_Ptr;
+ Current_Line_Start : Source_Ptr := No_Location;
-- Pointer to first character of line containing current token
- Start_Column : Column_Number;
+ Start_Column : Column_Number := No_Column_Number;
-- Starting column number (zero origin) of the first non-blank character
-- on the line containing the current token. This is used for error
-- recovery circuits which depend on looking at the column line up.
- Type_Token_Location : Source_Ptr;
+ Type_Token_Location : Source_Ptr := No_Location;
-- Within a type declaration, gives the location of the TYPE keyword that
-- opened the type declaration. Used in checking the end column of a record
-- declaration, which can line up either with the TYPE keyword, or with the
-- start of the line containing the RECORD keyword.
- Checksum : Word;
+ Checksum : Word := 0;
-- Used to accumulate a CRC representing the tokens in the source
-- file being compiled. This CRC includes only program tokens, and
-- excludes comments.
- First_Non_Blank_Location : Source_Ptr;
+ First_Non_Blank_Location : Source_Ptr := No_Location;
-- Location of first non-blank character on the line containing the
-- current token (i.e. the location of the character whose column number
-- is stored in Start_Column).
OpenPOWER on IntegriCloud