sem_ch8.adb (Analyze_Use_Type): Code cleanup.
authorHristian Kirtchev <kirtchev@adacore.com>
Wed, 26 Sep 2007 10:41:24 +0000 (12:41 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 26 Sep 2007 10:41:24 +0000 (12:41 +0200)
commit954c111a1a1fa7dafb94df4925d320f0f8bbac7a
treea45cee9b77f63bb77345528eb520b2ed1e2b0337
parentba6dccf8f9334926354056be32b55a09c7ead740
sem_ch8.adb (Analyze_Use_Type): Code cleanup.

2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch8.adb (Analyze_Use_Type): Code cleanup.
(Applicable_Use): Emit a warning when a package tries to use itself.
(Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
is already in use or the package where it is declared is in use or is
declared in the current package.
(Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.

* a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.

From-SVN: r128779
gcc/ada/a-tasatt.adb
gcc/ada/g-socket.adb
gcc/ada/g-socthi-mingw.adb
gcc/ada/g-thread.adb
gcc/ada/s-intman-vms.adb
gcc/ada/s-osprim-vxworks.adb
gcc/ada/s-tarest.adb
gcc/ada/s-tassta.adb
gcc/ada/s-tporft.adb
gcc/ada/sem_ch8.adb