aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/a-reatim.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2015-10-26 11:12:40 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2015-10-26 11:12:40 +0100
commite96b7045d6d56a31c05bcdf387e38c0d64584ef2 (patch)
tree74efbf5686f1ccd60a2ecaee965ac294fe866253 /gcc/ada/a-reatim.adb
parentc1fffdf1fb2ebce24620195c4add32eb90daa598 (diff)
downloadgcc-e96b7045d6d56a31c05bcdf387e38c0d64584ef2.zip
gcc-e96b7045d6d56a31c05bcdf387e38c0d64584ef2.tar.gz
gcc-e96b7045d6d56a31c05bcdf387e38c0d64584ef2.tar.bz2
[multiple changes]
2015-10-26 Gary Dismukes <dismukes@adacore.com> * a-reatim.adb, contracts.adb, contracts.ads: Minor reformatting and typo corrections. 2015-10-26 Ed Schonberg <schonberg@adacore.com> * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Do not recheck the consistency betwen the freeze point and the end of declarations for the expression in an aspect specification, because it was done already in the analysis of the generic. Furthermore, the delayed analysis of an aspect of the instance may produce spurious errors when the generic is a child unit that references entities in the parent (which might not be in scope at the freeze point of the instance). 2015-10-26 Yannick Moy <moy@adacore.com> * sem_res.adb (Resolve_Call): Issue info message instead of warning when call cannot be inlined in GNATprove mode. 2015-10-26 Arnaud Charlet <charlet@adacore.com> * exp_ch6.adb (Build_Procedure_Form): Use _result as the name of the extra parameter, cleaner than a random temp name. * gnat1drv.adb (Gnat1drv): Code clean up. From-SVN: r229314
Diffstat (limited to 'gcc/ada/a-reatim.adb')
-rw-r--r--gcc/ada/a-reatim.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/a-reatim.adb b/gcc/ada/a-reatim.adb
index 83ff25b..57fcd00 100644
--- a/gcc/ada/a-reatim.adb
+++ b/gcc/ada/a-reatim.adb
@@ -123,7 +123,7 @@ is
-- rounding of the division operator in particular, to be the same as
-- effects on integer types. To get the correct rounding we first
-- convert Time_Span to its root type Duration, which is represented as
- -- an 64-bit signed integer, and then use integer division.
+ -- a 64-bit signed integer, and then use integer division.
type Duration_Rep is range -(2 ** 63) .. +((2 ** 63 - 1));
@@ -131,7 +131,7 @@ is
new Unchecked_Conversion (Duration, Duration_Rep);
begin
return Integer
- (To_Integer (Duration (Left)) / To_Integer (Duration (Right)));
+ (To_Integer (Duration (Left)) / To_Integer (Duration (Right)));
end "/";
function "/" (Left : Time_Span; Right : Integer) return Time_Span is