This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Please revert the patches in bug #54040 and #59346 and special case x32
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org, svante dot signell at gmail dot com
- Cc: Arnaud Charlet <charlet at adacore dot com>, debian-ada <debian-ada at lists dot debian dot org>
- Date: Wed, 09 Apr 2014 16:24:57 +0200
- Subject: Re: Please revert the patches in bug #54040 and #59346 and special case x32
- Authentication-results: sourceware.org; auth=none
- References: <1395668239 dot 5365 dot 43 dot camel at G3620 dot my dot own dot domain> <20140409124140 dot GA3710 at adacore dot com> <1397051895 dot 1276 dot 51 dot camel at G3620 dot my dot own dot domain>
> Would it be possible to have s-osinte-posix.adb also for x32 and in
> s-osinte-x32.ads use the following construct:
> ...
> type timespec is private;
> ...
> type timespec is record
> tv_sec : time_t;
> tv_nsec : long log;
> end record;
> pragma Convention (C, timespec);
>
> and similiar for timeval if needed?
>
> That's the construct other unices use now when s-osinte-posix.adb
> defines tv_nsec as time_t?
Not sure what the "now" is referring to, but if you want to revert the
original POSIX breakage in s-osinte-posix.adb, you need to define timespec
according to the POSIX spec, there is no other way.
--
Eric Botcazou