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

--- Comment #74 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Just to be sure before testing, you are suggesting this in
> gcc/ada/s-oscons-tmpl.c?
> 
> +#if __WORDSIZE == 64 \
> +  || (defined __SYSCALL_WORDSIZE && __SYSCALL_WORDSIZE == 64) \
> +  || (__TIMESIZE == 32 && !defined __USE_TIME64_REDIRECTS)
>  #define SIZEOF_tv_nsec (sizeof (ts.tv_nsec))
> +#else
> +// sourceware.org/glibc/wiki/Y2038ProofnessDesign
> +#define SIZEOF_tv_nsec (8)
> +#endif

No, that's too fragile, we would need a pure sizeof-based computation.

Reply via email to