summaryrefslogtreecommitdiff
path: root/gcc/ada/par.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-15 10:39:11 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-15 10:39:11 +0000
commit11b376d20c7846b591891ce4bf35922384e8d29d (patch)
treea0ab72ef2e31cf8c6f6fc5c246bde0729f1611a2 /gcc/ada/par.adb
parent0423f7520c17e6e2521aafbf5e9663ec94cf8590 (diff)
downloadgcc-11b376d20c7846b591891ce4bf35922384e8d29d.tar.gz
2009-07-15 Ed Schonberg <schonberg@adacore.com>
* sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant conditions of a derived boolean type. Minor reformatting 2009-07-15 Robert Dewar <dewar@adacore.com> * gnat1drv.adb: Initialize SCO tables * par-load.adb: Call SCO_Record for main unit spec * par.adb: Make call to SCO_Record for main unit * par_sco.adb (Unit_Table): Change format to facilitate sort (Process_Decisions): New procedure with list argument (Traverse_Generic_Package_Declaration): New procedure (Initialize): New procedure, replaces Init (SCO_Output): Sort unit table before output (SCO_Record): Avoid duplications (SCO_Record): Handle remaining cases of units (Traverse_Declarations_Or_Statements): Handle generics * par_sco.ads (Initialize): New peocedure (replaces Init) * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for subunit. 2009-07-15 Arnaud Charlet <charlet@adacore.com> * debug.adb: Add -gnatd.J switch for now to support scil generation in parallel. Add missing doc for -gnatd.I and -gnatd.O git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149679 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/par.adb')
-rw-r--r--gcc/ada/par.adb15
1 files changed, 6 insertions, 9 deletions
diff --git a/gcc/ada/par.adb b/gcc/ada/par.adb
index 6041c63b08b..78ffd604ebd 100644
--- a/gcc/ada/par.adb
+++ b/gcc/ada/par.adb
@@ -1328,10 +1328,9 @@ begin
if Ucount < Multiple_Unit_Index then
- -- We skip in syntax check only mode, since we don't want
- -- to do anything more than skip past the unit and ignore it.
- -- This causes processing like setting up a unit table entry
- -- to be skipped.
+ -- We skip in syntax check only mode, since we don't want to do
+ -- anything more than skip past the unit and ignore it. This means
+ -- we skip processing like setting up a unit table entry.
declare
Save_Operating_Mode : constant Operating_Mode_Type :=
@@ -1456,12 +1455,10 @@ begin
pragma Assert (Scope.Last = 0);
- -- This is where we generate SCO output if required
+ -- Here we make the SCO table entries for the main unit
- if Generate_SCO
- and then Operating_Mode = Generate_Code
- then
- SCO_Record (Current_Source_Unit);
+ if Generate_SCO then
+ SCO_Record (Main_Unit);
end if;
-- Remaining steps are to create implicit label declarations and to load