summaryrefslogtreecommitdiff
path: root/gcc/ada/par-load.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-load.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-load.adb')
-rw-r--r--gcc/ada/par-load.adb5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ada/par-load.adb b/gcc/ada/par-load.adb
index e21fb0434c6..9aa08423805 100644
--- a/gcc/ada/par-load.adb
+++ b/gcc/ada/par-load.adb
@@ -278,9 +278,14 @@ begin
-- If this is a separate spec for the main unit, then we reset
-- Main_Unit_Entity to point to the entity for this separate spec
+ -- and this is also where we generate the SCO's for this spec.
if Cur_Unum = Main_Unit then
Main_Unit_Entity := Cunit_Entity (Unum);
+
+ if Generate_SCO then
+ SCO_Record (Unum);
+ end if;
end if;
-- If we don't find the spec, then if we have a subprogram body, we