aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sinput.ads
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2022-11-07 09:25:31 -0500
committerMarc Poulhiès <poulhies@adacore.com>2022-11-14 14:46:51 +0100
commit438f878718f81302205b5241dd325bb841c8c92c (patch)
tree257239eb0a0285effb6af91c9e650d8275619a73 /gcc/ada/sinput.ads
parent0e194d289d4d1c9aa16d14c4b94caf11c2506da3 (diff)
downloadgcc-438f878718f81302205b5241dd325bb841c8c92c.zip
gcc-438f878718f81302205b5241dd325bb841c8c92c.tar.gz
gcc-438f878718f81302205b5241dd325bb841c8c92c.tar.bz2
ada: Remove incorrect comments about initialization
Cleanup only; no change in behavior. This patch removes and rewrites some comments regarding initialization. These initializions are needed, so there's no need to apologize for initializing these variables. Note that -gnatVa is not relevant; reads of uninitialized variables are wrong, whether or not we get caught. gcc/ada/ * atree.ads: Remove some comments. * err_vars.ads: Likewise. * scans.ads: Likewise. * sinput.ads: Likewise. * checks.ads: Likewise. Also add a "???" comment indicating an obsolete comment that is too difficult to correct at this time. * sem_attr.adb: Minor comment rewrite.
Diffstat (limited to 'gcc/ada/sinput.ads')
-rw-r--r--gcc/ada/sinput.ads2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/ada/sinput.ads b/gcc/ada/sinput.ads
index af2fec7..febb2ef 100644
--- a/gcc/ada/sinput.ads
+++ b/gcc/ada/sinput.ads
@@ -409,8 +409,6 @@ package Sinput is
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 Initialize_Scalars without problems.
Current_Source_Unit : Unit_Number_Type := No_Unit;
-- Unit number of source file currently being scanned. Initialized to