OSDN Git Service

2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Sep 2007 10:41:35 +0000 (10:41 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Sep 2007 10:41:35 +0000 (10:41 +0000)
commita30d9e99bbb225ba5c99d684a86fceb65a1d2615
tree644752c5356a4d7d621cd13a2c67342dfd5036b9
parentc211aebec4554931ed842085d5c6c9e818fde811
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128780 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/a-calend-vms.adb
gcc/ada/a-calend.adb
gcc/ada/bindgen.adb
gcc/ada/init.c