This is the mail archive of the
mailing list for the GCC project.
Re: [patch,fortran] Fix corner case where consecutive calls to date_and_time can return times out of sequence (PR30015)
- From: Paul Thomas <paulthomas2 at wanadoo dot fr>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: Tue, 05 Dec 2006 06:37:00 +0100
- Subject: Re: [patch,fortran] Fix corner case where consecutive calls to date_and_time can return times out of sequence (PR30015)
- References: <456DE55F.firstname.lastname@example.org> <email@example.com>
I am sorry but I have stared at the patch and the explanation and am
none the wiser :-)
The change by Mat Cross is therefore:
- Moving the gettimeofday() block up in the file
- Using the result of gettimeofday() for lt and value, instead of
using time() for lt and gettimeofday() for value
There is obviously something that I am missing in the mechanics of
time() and gettimeofday(). I need an explanation as to where this time
shifting comes from, I think. Is it simply that time() and
gettimeofday() are different? If so why?
I am willing to put some time in to review this but if somebody else
'sees' it, please go ahead and do it!