[Ada] The Unix Epochalyse of 2038 - OS_Time comparison

2021-07-05 Thread Pierre-Marie de Rodat
The comment in the public section of the spec says the comparison ops are intrinsic, but that doesn't match the private part implementation and comment. Fix this. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * libgnat/s-os_lib.ads: Import OS_Time comparison ops as i

[Ada] The Unix Epochalyse of 2038 - OS_Time

2021-07-05 Thread Pierre-Marie de Rodat
OS_Time is use mainly in the interface to the "C" part of the GNAT RTL. Change it to a 64-bit signed type on all targets. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * adaint.h (OS_Time): typedef as long long. * osint.adb (Underlying_OS_Time): Declare as 64-bit sig