[PATCH] PR ada/54040: [x32] Incorrect timeval and timespec
H.J. Lu
hjl.tools@gmail.com
Thu Nov 14 22:40:00 GMT 2013
On Thu, Nov 14, 2013 at 6:16 AM, Arnaud Charlet <charlet@adacore.com> wrote:
>> I also changed s-osinte-posix.adb and s-osprim-posix.adb
>> for x32. They aren't Linux specific. What should I do with
>> them?
>
> I would use the time_t type defined in s-osinte* (all POSIX implementations
> of s-osinte* have such definition, or if they don't, it's easy to add), and
> in the s-osinte-linux version we can have a renaming:
>
> subtype time_t is System.Linux.time_t
>
> and in System.Linux have either:
>
> type time_t is new Long_Integer;
>
> or
>
> type time_t is new Long_Long_Integer;
>
> depending on the variant.
>
> Arno
Another problem. s-osprim-posix.adb has
-- ??? These definitions are duplicated from System.OS_Interface
-- because we don't want to depend on any package. Consider removing
-- these declarations in System.OS_Interface and move these ones in
-- the spec.
I can't use time_t from s-osinte-linux.ads since System.OS_Interface
isn't available. What should I do?
--
H.J.
More information about the Gcc-patches
mailing list