aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/a-calend.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2012-01-23 09:55:13 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2012-01-23 09:55:13 +0100
commitb3aa0ca8345ecadca2f3482bc78074b634557164 (patch)
tree9005c3751c02616edac5d5ea549551890eb04451 /gcc/ada/a-calend.ads
parent3ffd18f16ccb5256aaf5d8e6a55fc8ad2d521085 (diff)
downloadgcc-b3aa0ca8345ecadca2f3482bc78074b634557164.zip
gcc-b3aa0ca8345ecadca2f3482bc78074b634557164.tar.gz
gcc-b3aa0ca8345ecadca2f3482bc78074b634557164.tar.bz2
[multiple changes]
2012-01-23 Ed Schonberg <schonberg@adacore.com> * sem_ch6.adb (Analyze_Subprogram_Declaration): Do not set the Corresponding_Body on a defaulted null formal subprogram. * sem_ch12.adb (Check_Formal_Package_Instance): No check needed on a defaulted formal subprogram that is a null procedure. 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com> * exp_ch9.adb: Update the comments involving pragma Implemented. * sem_ch3.adb (Check_Pragma_Implemented (Entity_Id)): Add local constant Subp_Alias and local variable Impl_Subp. Properly handle aliases of synchronized wrappers. Code cleanup. (Check_Pragma_Implemented (Entity_Id; Entity_Id)): Add Name_Optional as part of the condition. * sem_prag.adb (Analyze_Pragma): Add "Optional" as one of the valid choices of implementation kind. (Check_Arg_Is_One_Of): New routine. * snames.ads-tmlp: Add Name_Optional. 2012-01-23 Ed Schonberg <schonberg@adacore.com> * par-ch13.adb: Better error recovery in illegal aspect specification. 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com> * a-calend.adb: Add with clause for Interfaces.C. Add constant Unix_Max. (Day_Of_Week): Call the internal UTC_Time_Offset. (Split): Call the internal UTC_Time_Offset. (Time_Of): Call the internal UTC_Time_Offset. (Time_Zone_Operations.UTC_Time_Offset): Call internal UTC_Time_Offset. (UTC_Time_Offset): New library-level routine. * a-calend.ads (UTC_Time_Offset): Remove parameter Is_Historic. Update related comment on usage. * a-catizo.adb (UTC_Time_Offset): Removed. (UTC_Time_Offset (Time)): Call Time_Zone_Operations.UTC_Time_Offset. * a-caltizo.ads (UTC_Time_Offset): Removed. (UTC_Time_Offset (Time)): Add back the default expression of parameter Date. From-SVN: r183414
Diffstat (limited to 'gcc/ada/a-calend.ads')
-rw-r--r--gcc/ada/a-calend.ads9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/ada/a-calend.ads b/gcc/ada/a-calend.ads
index 240e62c..6178019 100644
--- a/gcc/ada/a-calend.ads
+++ b/gcc/ada/a-calend.ads
@@ -350,12 +350,9 @@ private
package Time_Zones_Operations is
- function UTC_Time_Offset
- (Date : Time;
- Is_Historic : Boolean := True) return Long_Integer;
- -- Return the offset in seconds from UTC of an arbitrary date. If flag
- -- Is_Historic is set to False, then return the local time zone offset
- -- regardless of what Date designates.
+ function UTC_Time_Offset (Date : Time) return Long_Integer;
+ -- Return (in seconds), the difference between the local time zone and
+ -- UTC time at a specific historic date.
end Time_Zones_Operations;