]> git.ipfire.org Git - thirdparty/gcc.git/commit
a-calend-vms.adb, [...]: Add a section on leap seconds control along with two entitie...
authorHristian Kirtchev <kirtchev@adacore.com>
Wed, 26 Sep 2007 10:41:35 +0000 (12:41 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 26 Sep 2007 10:41:35 +0000 (12:41 +0200)
commitfe8f5daf7b1effbcf60f9696f8f2bb138b7e446b
tree644752c5356a4d7d621cd13a2c67342dfd5036b9
parent954c111a1a1fa7dafb94df4925d320f0f8bbac7a
a-calend-vms.adb, [...]: Add a section on leap seconds control along with two entities used to enable...

2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>

* a-calend-vms.adb, a-calend.adb:
Add a section on leap seconds control along with two entities used to
enable and disable leap seconds support. The array Leap_Second_Times is
now constant and contains hard time values pre-generated. Remove
all elaboration code used to populate the table of leap seconds.

* bindgen.adb:
Add entity Leap_Seconds_Support to the list of global run-time variables
along with a comment on its usage and values.
(Gen_Adainit_Ada): Add code to generate the declaration and import of
Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
or one (enabled) depending on the presence of binder switch "-y".
(Gen_Adainit_C): Add code to generate the declaration of external int
__gl_leap_seconds_support. Set is value to zero (disabled) or one
(enabled) depending on the presence of binder switch "-y".

* init.c: Add __gl_leap_seconds_support to the list of global values
computed by the binder.

From-SVN: r128780
gcc/ada/a-calend-vms.adb
gcc/ada/a-calend.adb
gcc/ada/bindgen.adb
gcc/ada/init.c