Patchwork [v5] Y2038: make __difftime compatible with 64-bit time

mail settings
Submitter Joseph Myers
Date Dec. 21, 2018, 6:55 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/30801/
State New
Headers show


Joseph Myers - Dec. 21, 2018, 6:55 p.m.
On Fri, 21 Dec 2018, H.J. Lu wrote:

> This caused:

I am testing this patch and will commit if the tests pass.

Update nios2, sparc32 for difftime changes (bug 24023).

The recent difftime changes introduced localplt test failures on nios2
and sparc32, two configurations where some soft-fp functions are
defined in / exported from, and where the difftime changes
affected the particular set of floating-point operations used in  This patch adds those functions to, alongside
other such functions already there.  (In the sparc32 case, and more
generally on any platform where long double is a software
floating-point type, it would probably be more efficient to avoid
using long double at all in difftime, but that's a pre-existing

Tested with for its nios2 and sparcv9

2018-12-21  Joseph Myers  <>

	[BZ #24023]
	* sysdeps/unix/sysv/linux/nios2/ Allow __floatundidf
	PLT reference in
	* sysdeps/unix/sysv/linux/sparc/sparc32/ Allow
	_Q_lltoq and _Q_qtod PLT references in


diff --git a/sysdeps/unix/sysv/linux/nios2/ b/sysdeps/unix/sysv/linux/nios2/
index 4430a5891e..3805ed56b9 100644
--- a/sysdeps/unix/sysv/linux/nios2/
+++ b/sysdeps/unix/sysv/linux/nios2/
@@ -26,6 +26,7 @@ __divsf3 __nedf2 __eqdf2 __extendsfdf2 __floatundidf ? matherr
 # The main malloc is interposed into the dynamic linker, for
 # allocations after the initial link (when dlopen is used).
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/ b/sysdeps/unix/sysv/linux/sparc/sparc32/
index 1668f4017e..6bf10ff858 100644
--- a/sysdeps/unix/sysv/linux/sparc/sparc32/
+++ b/sysdeps/unix/sysv/linux/sparc/sparc32/
@@ -8,8 +8,10 @@ _Q_fle ? _Q_flt ? _Q_fne ? _Q_itoq ? _Q_lltoq ? _Q_mul ? _Q_sub ? _Q_qtod ? _Unwind_Find_FDE calloc free