https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114065

--- Comment #23 from Nicolas Boulenguez <nicolas at debian dot org> ---
Always with gcc-13.2.0+Debian patches on arm-linux-gnueabihf,

if s-osprim__posix.adb imports and calls

int
__gnat_gettimeofday(struct timeval *restrict tv,
                    struct timezone *restrict tz)
{
  return gettimeofday(tv, tz);
}

defined in cal.c instead of directly importing and calling the C gettimeofday
as it does for now, the returned date is correct.

This suggests that there is a distinct issue and provides a workaround for it.

Reply via email to