This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR ada/54040: [x32] Incorrect timeval and timespec
- From: Arnaud Charlet <charlet at adacore dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Eric Botcazou <ebotcazou at adacore dot com>
- Date: Thu, 14 Nov 2013 15:16:39 +0100
- Subject: Re: [PATCH] PR ada/54040: [x32] Incorrect timeval and timespec
- Authentication-results: sourceware.org; auth=none
- References: <20131113203213 dot GA1176 at intel dot com> <20131114083820 dot GA27428 at adacore dot com> <CAMe9rOpyx+5Dv_kdUKJpFrPVg7TTqx1cMRw4FN-v3YYuk8RxPg at mail dot gmail dot com> <20131114100216 dot GD19827 at adacore dot com> <CAMe9rOoPj441p7Zt4=XhQx72FG6vSf=pv3Zu39PYBTVE-k+==g at mail dot gmail dot com> <20131114103019 dot GA25699 at adacore dot com> <CAMe9rOobLZz4rc56qaGBqJBw9Gjgis7C-4e1DvQS1n5ce_yVhQ at mail dot gmail dot com>
> 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