restrict.adb, [...]: Remove redundant type conversion.
authorHristian Kirtchev <kirtchev@adacore.com>
Fri, 31 Aug 2007 10:23:25 +0000 (12:23 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 31 Aug 2007 10:23:25 +0000 (12:23 +0200)
commitb90cfacd5f804816323d230bd3d7fc4d62569d5b
tree53d9fad7764e46233036b104c5363cc023e5b437
parent05af427c1fbfd2d6a902a4aa98140ee9a1f8221e
restrict.adb, [...]: Remove redundant type conversion.

2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>

        * restrict.adb, namet.adb, par-util.adb: Remove redundant type
conversion.

* sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
simple redundant qualifications. The check is performed whenever the
expression is a non-overloaded identifier.
(Resolve_Type_Conversion): Enchance the redundant type conversion check
to include loop parameters.
(Valid_Conversion): Avoid generation of spurious error message.

From-SVN: r127976
gcc/ada/namet.adb
gcc/ada/par-util.adb
gcc/ada/restrict.adb
gcc/ada/sem_res.adb