summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-12 13:11:54 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-12 13:11:54 +0000
commitf4abddd09995c835be3b8259b774f58d8685c165 (patch)
tree507965b7d7ae43bbd6b2a04053989a365713205c /gcc
parent51ec325087a0306184fad3c2abf7a375671d6e77 (diff)
downloadppe42-gcc-f4abddd09995c835be3b8259b774f58d8685c165.tar.gz
ppe42-gcc-f4abddd09995c835be3b8259b774f58d8685c165.zip
Minor reformatting.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128434 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/a-calend-vms.adb1
-rw-r--r--gcc/ada/a-calend-vms.ads3
-rw-r--r--gcc/ada/a-calend.adb1
-rw-r--r--gcc/ada/a-calend.ads17
4 files changed, 14 insertions, 8 deletions
diff --git a/gcc/ada/a-calend-vms.adb b/gcc/ada/a-calend-vms.adb
index 0df4328b3e3..c115c8a220d 100644
--- a/gcc/ada/a-calend-vms.adb
+++ b/gcc/ada/a-calend-vms.adb
@@ -1136,5 +1136,4 @@ begin
end loop;
end;
end if;
-
end Ada.Calendar;
diff --git a/gcc/ada/a-calend-vms.ads b/gcc/ada/a-calend-vms.ads
index f0c97492732..108bd868179 100644
--- a/gcc/ada/a-calend-vms.ads
+++ b/gcc/ada/a-calend-vms.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 1992-2006, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2007, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
@@ -38,6 +38,7 @@
-- This is the Alpha/VMS version
with System.OS_Primitives;
+
package Ada.Calendar is
package OSP renames System.OS_Primitives;
diff --git a/gcc/ada/a-calend.adb b/gcc/ada/a-calend.adb
index 2dce4fdcd14..9acac9bf6d7 100644
--- a/gcc/ada/a-calend.adb
+++ b/gcc/ada/a-calend.adb
@@ -1385,5 +1385,4 @@ begin
end loop;
end;
end if;
-
end Ada.Calendar;
diff --git a/gcc/ada/a-calend.ads b/gcc/ada/a-calend.ads
index 711cd22af7e..8c373fd2c93 100644
--- a/gcc/ada/a-calend.ads
+++ b/gcc/ada/a-calend.ads
@@ -53,7 +53,9 @@ package Ada.Calendar is
function Clock return Time;
-- The returned time value is the number of nanoseconds since the start
- -- of Ada time (1901-01-01 00:00:00.0 UTC).
+ -- of Ada time (1901-01-01 00:00:00.0 UTC). If leap seconds are enabled,
+ -- the result will contain all elapsed leap seconds since the start of
+ -- Ada time until now.
function Year (Date : Time) return Year_Number;
function Month (Date : Time) return Month_Number;
@@ -169,11 +171,16 @@ private
-- 1972-06-30 23:59:59.0
-- 1972-07-01 00:00:00.0
- -- When a new leap second is added, the following steps must be carried
- -- out:
+ -- When a new leap second is introduced, the following steps must be
+ -- carried out:
- -- 1) Increment Leap_Seconds_Count by one
- -- 2) Add an entry to the end of table Leap_Second_Dates
+ -- 1) Increment Leap_Seconds_Count in a-calend.adb by one
+ -- 2) Increment LS_Count in xleaps.adb by one
+ -- 3) Add the new date to the aggregate of array LS_Dates in
+ -- xleaps.adb
+ -- 4) Compile and execute xleaps
+ -- 5) Replace the values of Leap_Second_Times in a-calend.adb with the
+ -- aggregate generated by xleaps
-- The algorithms that build the actual leap second values and discover
-- how many leap seconds have occured between two dates do not need any
OpenPOWER on IntegriCloud