From: pmderodat Date: Mon, 3 Dec 2018 15:49:42 +0000 (+0000) Subject: [Ada] Add leap seconds for 2015 and 2016 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=662bfc29557dbc068ffb6947130b3d4e5353a3de;p=thirdparty%2Fgcc.git [Ada] Add leap seconds for 2015 and 2016 The following patch updates Ada.Calendar and helper utility Xleaps to include the leap seconds for years 2015 and 2016. 2018-12-03 Hristian Kirtchev gcc/ada/ * libgnat/a-calend.adb: Update the number of leap seconds. Add the hard time values for year 2015 and 2016. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266757 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 73627f078f7f..0736bb38f9d0 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2018-12-03 Hristian Kirtchev + + * libgnat/a-calend.adb: Update the number of leap seconds. Add + the hard time values for year 2015 and 2016. + 2018-12-03 Gary Dismukes * exp_ch3.adb, libgnarl/s-taasde.adb, libgnarl/s-taenca.adb, diff --git a/gcc/ada/libgnat/a-calend.adb b/gcc/ada/libgnat/a-calend.adb index 8bf5e7a5ce48..d585b7ab1b56 100644 --- a/gcc/ada/libgnat/a-calend.adb +++ b/gcc/ada/libgnat/a-calend.adb @@ -38,7 +38,6 @@ with System.OS_Primitives; package body Ada.Calendar with SPARK_Mode => Off is - -------------------------- -- Implementation Notes -- -------------------------- @@ -157,7 +156,7 @@ is Leap_Support : constant Boolean := (Flag = 1); -- Flag to controls the usage of leap seconds in all Ada.Calendar routines - Leap_Seconds_Count : constant Natural := 25; + Leap_Seconds_Count : constant Natural := 27; --------------------- -- Local Constants -- @@ -236,7 +235,9 @@ is -4765132779000000000, -4544207978000000000, -4449513577000000000, - -4339180776000000000); + -4339180776000000000, + -4244572775000000000, + -4197052774000000000); --------- -- "+" --