This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][Ada] Fix tasking on sparc64-linux (122 ACATS FAIL => 1 FAIL)
On Mon, 2009-11-23 at 11:54 +0100, Eric Botcazou wrote:
> > The problem is that I don't have access to the OS in question for
> > testing the change (and I already broke hpux11
> > http://gcc.gnu.org/PR42153 )
>
> This broke precisely because you didn't remove it from s-osinte-hpux.ads and
> this probably broke on other Unices as well for that reason.
>
> The comment in various s-osinte.ads files
>
> type struct_timeval is private;
> -- This is needed on systems that do not have clock_gettime()
> -- but do have gettimeofday().
>
> and the fact that the interface has been reimplemented twice would let one
> think that the instance in the s-osinte.ads files is essentially unused.
AIX is using s-taprop-posix.adb and provides clock_gettime
through s-osinte-aix.ads implemented in s-osinte-aix.adb with
gettimeofday/struct_timeval. Same for darwin.
I'm working on a patch.
Laurent