diff options
author | Robert Dewar <dewar@adacore.com> | 2014-08-04 08:12:01 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-08-04 10:12:01 +0200 |
commit | dfaff97b614755b2ac6787c541af837f200d274b (patch) | |
tree | 9da0ae6d5644a04e391e1e64d53a9c1d25d107c4 /gcc/ada/exp_ch4.adb | |
parent | 8575023cdc36ca4647811302e329a64e2df81634 (diff) | |
download | gcc-dfaff97b614755b2ac6787c541af837f200d274b.zip gcc-dfaff97b614755b2ac6787c541af837f200d274b.tar.gz gcc-dfaff97b614755b2ac6787c541af837f200d274b.tar.bz2 |
exp_ch4.adb: Minor reformatting.
2014-08-04 Robert Dewar <dewar@adacore.com>
* exp_ch4.adb: Minor reformatting.
* exp_attr.adb: Minor reformatting.
From-SVN: r213541
Diffstat (limited to 'gcc/ada/exp_ch4.adb')
-rw-r--r-- | gcc/ada/exp_ch4.adb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ada/exp_ch4.adb b/gcc/ada/exp_ch4.adb index d012fc6..e0f76fc 100644 --- a/gcc/ada/exp_ch4.adb +++ b/gcc/ada/exp_ch4.adb @@ -6496,6 +6496,10 @@ package body Exp_Ch4 is Apply_Arithmetic_Overflow_Check (N); return; end if; + + -- Overflow checks for floating-point if -gnateF mode active + + Check_Float_Op_Overflow (N); end Expand_N_Op_Add; --------------------- @@ -6704,6 +6708,10 @@ package body Exp_Ch4 is elsif Is_Integer_Type (Typ) then Apply_Divide_Checks (N); end if; + + -- Overflow checks for floating-point if -gnateF mode active + + Check_Float_Op_Overflow (N); end Expand_N_Op_Divide; -------------------- @@ -8462,6 +8470,10 @@ package body Exp_Ch4 is elsif Is_Signed_Integer_Type (Etype (N)) then Apply_Arithmetic_Overflow_Check (N); end if; + + -- Overflow checks for floating-point if -gnateF mode active + + Check_Float_Op_Overflow (N); end Expand_N_Op_Multiply; -------------------- @@ -9187,6 +9199,10 @@ package body Exp_Ch4 is if Is_Signed_Integer_Type (Typ) or else Is_Fixed_Point_Type (Typ) then Apply_Arithmetic_Overflow_Check (N); end if; + + -- Overflow checks for floating-point if -gnateF mode active + + Check_Float_Op_Overflow (N); end Expand_N_Op_Subtract; --------------------- |