diff options
author | Douglas B Rupp <rupp@adacore.com> | 2024-10-09 12:44:16 -0700 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2024-11-12 14:00:48 +0100 |
commit | 093894adbdf0638a494257bfe4bc42eb7ad13f6b (patch) | |
tree | b7e22091c8490222e129eac092d23bc149d1f0e4 /gcc/ada/csets.adb | |
parent | 23273ed381608382dd4cbc2a28f1ec7342eee149 (diff) | |
download | gcc-093894adbdf0638a494257bfe4bc42eb7ad13f6b.zip gcc-093894adbdf0638a494257bfe4bc42eb7ad13f6b.tar.gz gcc-093894adbdf0638a494257bfe4bc42eb7ad13f6b.tar.bz2 |
ada: GNAT Calendar Support for 64-bit Unix Time
The Epochalypse of 2038 will require the use of 64-bit time_t and
tv_sec (aka time in seconds from the Unix Epoch). The subprograms
in Ada calendar are self contained but nevertheless will malfunction
if a 64-bit integer type and calculations aren't used. Add 64-bit
versions and mark the old ones with pragma Obsolescent.
gcc/ada/ChangeLog:
* libgnat/a-calcon.adb (To_Ada_Time) (To_Duration)
(To_Struct_Timespec) (To_Unix_Time): Mark as obsolescent.
(To_Ada_Time_64) (To_Duration_64) (To_Struct_Timespec_64)
(To_Unix_Time_64): New.
* libgnat/a-calcon.ads (To_Ada_Time) (To_Duration)
(To_Struct_Timespec) (To_Unix_Time): Mark as obsolescent.
(To_Ada_Time_64) (To_Duration_64) (To_Struct_Timespec_64)
(To_Unix_Time_64): New.
* libgnat/a-calend.adb (To_Ada_Time) (To_Duration)
(To_Struct_Timespec) (To_Unix_Time): Mark as obsolescent.
(To_Ada_Time_64) (To_Duration_64) (To_Struct_Timespec_64)
(To_Unix_Time_64): New.
* libgnat/a-calend.ads (To_Ada_Time) (To_Duration)
(To_Struct_Timespec) (To_Unix_Time): Mark as obsolescent.
(To_Ada_Time_64) (To_Duration_64) (To_Struct_Timespec_64)
(To_Unix_Time_64): New.
Diffstat (limited to 'gcc/ada/csets.adb')
0 files changed, 0 insertions, 0 deletions