OSDN Git Service

2009-04-22 Ed Schonberg <schonberg@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Apr 2009 10:11:00 +0000 (10:11 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Apr 2009 10:11:00 +0000 (10:11 +0000)
commitdb317bdbca5dc958df19cd7315ef3b1836193b02
treeefe68ba58667e8b31a2bb078cde6c3002d8fe676
parent1c3efe5ceaa7b9714778941477f45544c92e98ee
2009-04-22  Ed Schonberg  <schonberg@adacore.com>

* lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
create a unit table entry for the subprogram declaration created for a
child suprogram body that has no separate specification.

* sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
subprogram body, call Make_Child_Decl_Unit.

* lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
table can only be the created specification of a child subprogram body
that is the main unit, which has not been entered in the table yet.

* errout.adb  (Output_Messages): Ignore created specification of a
child subprogram body to prevent repeated listing of error messages.

* gnat1drv.adb (gnat1drv): The generated specification for a child
subprogram body does not generate code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146559 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/errout.adb
gcc/ada/gnat1drv.adb
gcc/ada/lib-load.adb
gcc/ada/lib-load.ads
gcc/ada/lib.adb
gcc/ada/sem_ch10.adb