checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate overflow if result...
authorRobert Dewar <dewar@adacore.com>
Tue, 20 May 2008 12:44:23 +0000 (14:44 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 20 May 2008 12:44:23 +0000 (14:44 +0200)
commitec2dd67a4e27946cb81f63bea02db355f30a36f9
tree26b6bdd22686a877ec6acac6e34c19c2037b8bf0
parent57f56c63cb82353c64404ccf3cfe338ed3ea61be
checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate overflow if result converted to wider integer type.

2008-05-20  Robert Dewar  <dewar@adacore.com>
    Gary Dismukes  <dismukes@adacore.com>

* checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
overflow if result converted to wider integer type.
(Apply_Type_Conversion_Checks): Don't emit checks on conversions to
discriminated types when discriminant checks are suppressed.

From-SVN: r135616
gcc/ada/checks.adb