aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/a-calfor.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2012-05-15 11:26:48 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2012-05-15 11:26:48 +0200
commitdb664118be5bc2ea3e04784d45da659b13af1ef8 (patch)
treef379d457c02670132f951efa9f8c06c306d1a80b /gcc/ada/a-calfor.adb
parenta02f0c5dfa9246a57970aeefe5c7196a17bf7b1c (diff)
downloadgcc-db664118be5bc2ea3e04784d45da659b13af1ef8.zip
gcc-db664118be5bc2ea3e04784d45da659b13af1ef8.tar.gz
gcc-db664118be5bc2ea3e04784d45da659b13af1ef8.tar.bz2
[multiple changes]
2012-05-15 Hristian Kirtchev <kirtchev@adacore.com> * a-calend.adb (Day_Of_Week): The routine once again treats all dates as historic. (Formatting_Operations.Split): All calls to UTC_Time_Offset are now controlled through formal parameter Is_Historic. (Formatting_Operations.Time_Of): All calls to UTC_Time_Offset are now handled through formal parameter Is_Historic. (Split): Update the call to Formatting_Operations.Split. (Time_Of): Update the call to Formatting_Operations.Time_Of. (To_Ada_Time): Update the call to Formatting_Operations.Time_Of. (To_Strict_Tm): Update the call to Formatting_Operations.Split. * a-calend.ads (Split): Add new formal Is_Historic along with comment on usage. This routine is now exported for the purposes of GNAT.Calendar.Locale. (Time_Of): Remove defaults. Add new formal Is_Historic along with comment on usage. This routine is now exported for the purposes of GNAT.Calendar.Locale. * a-calend-vms.adb (Split): Update the call to Formatting_Operations.Split. (Time_Of): Update the call to Formatting_Operations.Time_Of. * a-calend-vms.ads (Split): Add new formal Is_Historic along with comment on usage. (Time_Of): Remove defaults. Add new formal Is_Historic along with comment on usage. * a-calfor.adb (Split): Update the call to Formatting_Operations.Split. (Time_Of): Update the call to Formatting_Operations.Time_Of. * impunit.adb: Include g-calloc to the list of non-RM defined units. 2012-05-15 Vincent Celier <celier@adacore.com> * prj-nmsc.adb (Add_Source): Always add the source if it is excluded, to avoid incorrect duplicate checks. 2012-05-15 Yannick Moy <moy@adacore.com> * sem_aux.ads: Correct typo. * sem_eval.adb (Compile_Time_Known_Value): Return False in Alfa mode for a deferred constant when outside of the scope of its full view. 2012-05-15 Emmanuel Briot <briot@adacore.com> * g-comlin.adb, g-comlin.ads (Define_Switch): Allow specifying the name of the argument, for the automatic help message. (Getopt): do not systematically initialize switches with string values to the empty string, when the user has already specified a default. From-SVN: r187504
Diffstat (limited to 'gcc/ada/a-calfor.adb')
-rw-r--r--gcc/ada/a-calfor.adb77
1 files changed, 41 insertions, 36 deletions
diff --git a/gcc/ada/a-calfor.adb b/gcc/ada/a-calfor.adb
index e328a4e..1376f93 100644
--- a/gcc/ada/a-calfor.adb
+++ b/gcc/ada/a-calfor.adb
@@ -421,18 +421,19 @@ package body Ada.Calendar.Formatting is
begin
Formatting_Operations.Split
- (Date => Date,
- Year => Year,
- Month => Month,
- Day => Day,
- Day_Secs => Seconds,
- Hour => H,
- Minute => M,
- Second => Se,
- Sub_Sec => Su,
- Leap_Sec => Leap_Second,
- Use_TZ => True,
- Time_Zone => Tz);
+ (Date => Date,
+ Year => Year,
+ Month => Month,
+ Day => Day,
+ Day_Secs => Seconds,
+ Hour => H,
+ Minute => M,
+ Second => Se,
+ Sub_Sec => Su,
+ Leap_Sec => Leap_Second,
+ Use_TZ => True,
+ Is_Historic => True,
+ Time_Zone => Tz);
-- Validity checks
@@ -466,18 +467,19 @@ package body Ada.Calendar.Formatting is
begin
Formatting_Operations.Split
- (Date => Date,
- Year => Year,
- Month => Month,
- Day => Day,
- Day_Secs => Dd,
- Hour => Hour,
- Minute => Minute,
- Second => Second,
- Sub_Sec => Sub_Second,
- Leap_Sec => Le,
- Use_TZ => True,
- Time_Zone => Tz);
+ (Date => Date,
+ Year => Year,
+ Month => Month,
+ Day => Day,
+ Day_Secs => Dd,
+ Hour => Hour,
+ Minute => Minute,
+ Second => Second,
+ Sub_Sec => Sub_Second,
+ Leap_Sec => Le,
+ Use_TZ => True,
+ Is_Historic => True,
+ Time_Zone => Tz);
-- Validity checks
@@ -514,18 +516,19 @@ package body Ada.Calendar.Formatting is
begin
Formatting_Operations.Split
- (Date => Date,
- Year => Year,
- Month => Month,
- Day => Day,
- Day_Secs => Dd,
- Hour => Hour,
- Minute => Minute,
- Second => Second,
- Sub_Sec => Sub_Second,
- Leap_Sec => Leap_Second,
- Use_TZ => True,
- Time_Zone => Tz);
+ (Date => Date,
+ Year => Year,
+ Month => Month,
+ Day => Day,
+ Day_Secs => Dd,
+ Hour => Hour,
+ Minute => Minute,
+ Second => Second,
+ Sub_Sec => Sub_Second,
+ Leap_Sec => Leap_Second,
+ Use_TZ => True,
+ Is_Historic => True,
+ Time_Zone => Tz);
-- Validity checks
@@ -630,6 +633,7 @@ package body Ada.Calendar.Formatting is
Leap_Sec => Leap_Second,
Use_Day_Secs => True,
Use_TZ => True,
+ Is_Historic => True,
Time_Zone => Tz);
end Time_Of;
@@ -679,6 +683,7 @@ package body Ada.Calendar.Formatting is
Leap_Sec => Leap_Second,
Use_Day_Secs => False,
Use_TZ => True,
+ Is_Historic => True,
Time_Zone => Tz);
end Time_Of;