diff options
author | Hristian Kirtchev <kirtchev@adacore.com> | 2007-08-31 12:23:25 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2007-08-31 12:23:25 +0200 |
commit | b90cfacd5f804816323d230bd3d7fc4d62569d5b (patch) | |
tree | 53d9fad7764e46233036b104c5363cc023e5b437 /gcc/ada/namet.adb | |
parent | 05af427c1fbfd2d6a902a4aa98140ee9a1f8221e (diff) | |
download | gcc-b90cfacd5f804816323d230bd3d7fc4d62569d5b.zip gcc-b90cfacd5f804816323d230bd3d7fc4d62569d5b.tar.gz gcc-b90cfacd5f804816323d230bd3d7fc4d62569d5b.tar.bz2 |
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
Diffstat (limited to 'gcc/ada/namet.adb')
-rw-r--r-- | gcc/ada/namet.adb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/namet.adb b/gcc/ada/namet.adb index 0f4074c4..6d5d158 100644 --- a/gcc/ada/namet.adb +++ b/gcc/ada/namet.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2006, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2007, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -149,7 +149,7 @@ package body Namet is else Write_Str ("Hash_Table ("); - Write_Int (Int (J)); + Write_Int (J); Write_Str (") has "); declare |