summaryrefslogtreecommitdiff
path: root/gcc/ada/opt.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-26 13:15:05 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-26 13:15:05 +0000
commit384c768b10fb9ea3f5d573ecc699dbd82eddad5d (patch)
tree4a832f2252eeeda8fa993dde3064c4bdaf25d7a1 /gcc/ada/opt.ads
parent87f3d5d373fb3d1c0748816a2188c79eb4449289 (diff)
downloadgcc-384c768b10fb9ea3f5d573ecc699dbd82eddad5d.tar.gz
2010-10-26 Vincent Celier <celier@adacore.com>
* opt.ads (Checksum_Accumulate_Token_Checksum): New Boolean flag, defaulted to True. (Checksum_GNAT_6_3): New name of Old_Checksums (Checksum_GNAT_5_03): New name of Old_Old_Checksums * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Adapt to new names of Opt flags. Set Checksum_Accumulate_Token_Checksum to False if GNAT version is 5.03 or before. * scng.adb (Accumulate_Token_Checksum_GNAT_6_3): New name of procedure Accumulate_Token_Checksum_Old. (Accumulate_Token_Checksum_GNAT_5_03): New name of procedure Accumulate_Token_Checksum_Old_Old. (Nlit): Call Accumulate_Token_Checksum only if Opt.Checksum_Accumulate_Token_Checksum is True. (Scan): Ditto git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165961 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/opt.ads')
-rw-r--r--gcc/ada/opt.ads23
1 files changed, 18 insertions, 5 deletions
diff --git a/gcc/ada/opt.ads b/gcc/ada/opt.ads
index 9c577c73032..1bc9729652b 100644
--- a/gcc/ada/opt.ads
+++ b/gcc/ada/opt.ads
@@ -933,12 +933,25 @@ package Opt is
-- GNATMAKE
-- Set to True when an object directory is specified with option -D
- Old_Checksums : Boolean := False;
- Old_Old_Checksums : Boolean := False;
+ Checksum_Accumulate_Token_Checksum : Boolean := True;
-- GPRBUILD
- -- Set to True when the old ways of computing checksums needs to be used.
- -- For reserved words, the old ways were to use the token value, while the
- -- new way is to use Tok_Identifier for reserved word too.
+ -- Set to False by gprbuild when the version of GNAT is 5.02 or before.
+ -- There were no call to procedure Accumulate_Token_Checksum in these
+ -- versions.
+
+ Checksum_GNAT_6_3 : Boolean := False;
+ -- GPRBUILD
+ -- Set to True by gprbuild when the version of GNAT is 6.3 or before. For
+ -- GNAT versions 5.04 to 6.3, Accumulate_Token_Checksum were called with
+ -- the token values of the keywords, instead of Tok_Identifier for later
+ -- versions, and Tok_Some was not in Token_Type.
+
+ Checksum_GNAT_5_03 : Boolean := False;
+ -- GPRBUILD
+ -- Set to True by gprbuild when the version of GNAT is 5.03. For GNAT 5.04,
+ -- Accumulate_Token_Checksum were called with the token values of the
+ -- keywords, and Tok_Interface, Tok_Overriding, Tok_Synchronized and
+ -- Tok_Some were not in Token_Type.
One_Compilation_Per_Obj_Dir : Boolean := False;
-- GNATMAKE, GPRBUILD