From 4e5e8ae99f435a848bce94aee7646af901846689 Mon Sep 17 00:00:00 2001 From: local-dev Date: Tue, 26 May 2026 18:59:46 -0700 Subject: [PATCH 1/3] fix(libm): port ld80 k_tanl.c from upstream newlib to resolve __kernel_tanl newlib/libm/ld80/ in this fork ships k_cosl.c and k_sinl.c but omits the companion k_tanl.c. As a result, libm.a builds with s_tanl.o present (the public `tanl()` entry point) but with an unresolved external reference to `__kernel_tanl`, the kernel helper invoked from the range-reduction path. Any program that whole-archive links libm.a or that calls `tanl()` from a C/C++ extension that resolves libm symbols at link time fails with: undefined reference to `__kernel_tanl` triggered by `s_tanl.o`. Upstream newlib (sourceware.org newlib-cygwin) already carries this file at newlib/libm/ld80/k_tanl.c. This PR back-ports it verbatim and registers it in newlib/libm/ld80/Makefile.inc next to k_cosl.c and k_sinl.c so the build produces `__kernel_tanl` and the libm.a archive becomes self-contained with respect to `tanl()`. The file carries the original Sun Microsystems / FreeBSD attribution unchanged, matching the headers on the sibling k_cosl.c and k_sinl.c files. Note: newlib/libm/ld128/ is also missing k_tanl.c in this fork. That target is not used by any current nanvix build (i386/i686 use ld80), so it is left out of this PR; a separate change can mirror the back-port there if needed. Verification: - Build the toolchain libm with this change and inspect with `nm`: `__kernel_tanl` is now defined (T) in the produced `k_tanl.o` and is resolved at link time from `s_tanl.o`. - A test program calling `tanl(0.5L)` links cleanly against the resulting libm.a without `--allow-multiple-definition` or other workarounds. Refs: nanvix-todo/toolchain-kernel-tanl-missing.md. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- newlib/libm/ld80/Makefile.inc | 3 +- newlib/libm/ld80/k_tanl.c | 119 ++++++++++++++++++++++++++++++++++ 2 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 newlib/libm/ld80/k_tanl.c diff --git a/newlib/libm/ld80/Makefile.inc b/newlib/libm/ld80/Makefile.inc index 97fbacddaa..3bee4ae94f 100644 --- a/newlib/libm/ld80/Makefile.inc +++ b/newlib/libm/ld80/Makefile.inc @@ -1,7 +1,8 @@ %C%_lsrc = \ %D%/b_tgammal.c %D%/e_powl.c %D%/s_erfl.c %D%/s_exp2l.c \ %D%/s_expl.c %D%/s_logl.c %D%/s_sinpil.c %D%/s_cospil.c \ - %D%/invtrig.c %D%/e_lgammal_r.c %D%/k_cosl.c %D%/k_sinl.c + %D%/invtrig.c %D%/e_lgammal_r.c %D%/k_cosl.c %D%/k_sinl.c \ + %D%/k_tanl.c libm_a_CFLAGS_%C% = -fbuiltin -fno-math-errno diff --git a/newlib/libm/ld80/k_tanl.c b/newlib/libm/ld80/k_tanl.c new file mode 100644 index 0000000000..c55303f01e --- /dev/null +++ b/newlib/libm/ld80/k_tanl.c @@ -0,0 +1,119 @@ +/* + * ==================================================== + * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. + * Copyright (c) 2008 Steven G. Kargl, David Schultz, Bruce D. Evans. + * + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + */ + +/* + * ld80 version of k_tan.c. See ../src/k_tan.c for most comments. + */ + +#include "math.h" +#include "../ld/math_private.h" + +/* + * Domain [-0.67434, 0.67434], range ~[-2.25e-22, 1.921e-22] + * |tan(x)/x - t(x)| < 2**-71.9 + * + * See k_cosl.c for more details about the polynomial. + */ +#if defined(__amd64__) || defined(__i386__) +/* Long double constants are slow on these arches, and broken on i386. */ +static const volatile double +T3hi = 0.33333333333333331, /* 0x15555555555555.0p-54 */ +T3lo = 1.8350121769317163e-17, /* 0x15280000000000.0p-108 */ +T5hi = 0.13333333333333336, /* 0x11111111111112.0p-55 */ +T5lo = 1.3051083651294260e-17, /* 0x1e180000000000.0p-109 */ +T7hi = 0.053968253968250494, /* 0x1ba1ba1ba1b827.0p-57 */ +T7lo = 3.1509625637859973e-18, /* 0x1d100000000000.0p-111 */ +pio4_hi = 0.78539816339744828, /* 0x1921fb54442d18.0p-53 */ +pio4_lo = 3.0628711372715500e-17, /* 0x11a80000000000.0p-107 */ +pio4lo_hi = -1.2541394031670831e-20, /* -0x1d9cceba3f91f2.0p-119 */ +pio4lo_lo = 6.1493048227390915e-37; /* 0x1a280000000000.0p-173 */ +#define T3 ((long double)T3hi + T3lo) +#define T5 ((long double)T5hi + T5lo) +#define T7 ((long double)T7hi + T7lo) +#define pio4 ((long double)pio4_hi + pio4_lo) +#define pio4lo ((long double)pio4lo_hi + pio4lo_lo) +#else +static const long double +T3 = 0.333333333333333333180L, /* 0xaaaaaaaaaaaaaaa5.0p-65 */ +T5 = 0.133333333333333372290L, /* 0x88888888888893c3.0p-66 */ +T7 = 0.0539682539682504975744L, /* 0xdd0dd0dd0dc13ba2.0p-68 */ +pio4 = 0.785398163397448309628L, /* 0xc90fdaa22168c235.0p-64 */ +pio4lo = -1.25413940316708300586e-20L; /* -0xece675d1fc8f8cbb.0p-130 */ +#endif + +static const double +T9 = 0.021869488536312216, /* 0x1664f4882cc1c2.0p-58 */ +T11 = 0.0088632355256619590, /* 0x1226e355c17612.0p-59 */ +T13 = 0.0035921281113786528, /* 0x1d6d3d185d7ff8.0p-61 */ +T15 = 0.0014558334756312418, /* 0x17da354aa3f96b.0p-62 */ +T17 = 0.00059003538700862256, /* 0x13559358685b83.0p-63 */ +T19 = 0.00023907843576635544, /* 0x1f56242026b5be.0p-65 */ +T21 = 0.000097154625656538905, /* 0x1977efc26806f4.0p-66 */ +T23 = 0.000038440165747303162, /* 0x14275a09b3ceac.0p-67 */ +T25 = 0.000018082171885432524, /* 0x12f5e563e5487e.0p-68 */ +T27 = 0.0000024196006108814377, /* 0x144c0d80cc6896.0p-71 */ +T29 = 0.0000078293456938132840, /* 0x106b59141a6cb3.0p-69 */ +T31 = -0.0000032609076735050182, /* -0x1b5abef3ba4b59.0p-71 */ +T33 = 0.0000023261313142559411; /* 0x13835436c0c87f.0p-71 */ + +long double +__kernel_tanl(long double x, long double y, int iy) { + long double z, r, v, w, s; + long double osign; + int i; + + iy = (iy == 1 ? -1 : 1); /* XXX recover original interface */ + osign = (x >= 0 ? 1.0 : -1.0); /* XXX slow, probably wrong for -0 */ + if (fabsl(x) >= 0.67434) { + if (x < 0) { + x = -x; + y = -y; + } + z = pio4 - x; + w = pio4lo - y; + x = z + w; + y = 0.0; + i = 1; + } else + i = 0; + z = x * x; + w = z * z; + r = T5 + w * (T9 + w * (T13 + w * (T17 + w * (T21 + + w * (T25 + w * (T29 + w * T33)))))); + v = z * (T7 + w * (T11 + w * (T15 + w * (T19 + w * (T23 + + w * (T27 + w * T31)))))); + s = z * x; + r = y + z * (s * (r + v) + y); + r += T3 * s; + w = x + r; + if (i == 1) { + v = (long double) iy; + return osign * + (v - 2.0 * (x - (w * w / (w + v) - r))); + } + if (iy == 1) + return w; + else { + /* + * if allow error up to 2 ulp, simply return + * -1.0 / (x+r) here + */ + /* compute -1.0 / (x+r) accurately */ + long double a, t; + z = w; + z = z + 0x1p32 - 0x1p32; + v = r - (z - x); /* z+v = r+x */ + t = a = -1.0 / w; /* a = -1.0/w */ + t = t + 0x1p32 - 0x1p32; + s = 1.0 + t * z; + return t + a * (s + t * v); + } +} From d9cf72f39c957e8637a8ad305a17af864eab6fb1 Mon Sep 17 00:00:00 2001 From: local-dev Date: Wed, 27 May 2026 13:48:10 -0700 Subject: [PATCH 2/3] fix(libm): port ld128 k_tanl.c from upstream newlib to resolve __kernel_tanl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mirror of the previous ld80 back-port for the 128-bit long double tree. newlib/libm/ld128/ in this fork ships k_cosl.c and k_sinl.c but omits the companion k_tanl.c, leaving s_tanl.o with an unresolved external reference to `__kernel_tanl` whenever ld128 is selected as the long-double tree. Upstream newlib (sourceware.org newlib-cygwin) already carries this file at newlib/libm/ld128/k_tanl.c. This commit back-ports it verbatim and registers it in newlib/libm/ld128/Makefile.inc next to k_cosl.c and k_sinl.c so the ld128 libm.a archive is also self-contained. The file carries the original Sun Microsystems / FreeBSD attribution unchanged, matching the headers on the sibling k_cosl.c and k_sinl.c files. No nanvix build uses ld128 today (i386/i686 are ld80). This back-port is pre-emptive so future ports (aarch64, riscv64, sparc64, …) that select ld128 do not hit the same `__kernel_tanl` undef. Refs: nanvix-todo/toolchain-kernel-tanl-missing.md. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- newlib/libm/ld128/Makefile.inc | 3 +- newlib/libm/ld128/k_tanl.c | 114 +++++++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 newlib/libm/ld128/k_tanl.c diff --git a/newlib/libm/ld128/Makefile.inc b/newlib/libm/ld128/Makefile.inc index 337284d690..444d8b2652 100644 --- a/newlib/libm/ld128/Makefile.inc +++ b/newlib/libm/ld128/Makefile.inc @@ -1,7 +1,8 @@ %C%_lsrc = \ %D%/e_powl.c %D%/s_erfl.c %D%/s_exp2l.c %D%/s_expl.c \ %D%/s_logl.c %D%/b_tgammal.c %D%/invtrig.c \ - %D%/e_lgammal_r.c %D%/k_cosl.c %D%/k_sinl.c + %D%/e_lgammal_r.c %D%/k_cosl.c %D%/k_sinl.c \ + %D%/k_tanl.c libm_a_CFLAGS_%C% = -fbuiltin -fno-math-errno diff --git a/newlib/libm/ld128/k_tanl.c b/newlib/libm/ld128/k_tanl.c new file mode 100644 index 0000000000..9a58cd264e --- /dev/null +++ b/newlib/libm/ld128/k_tanl.c @@ -0,0 +1,114 @@ +/* + * ==================================================== + * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. + * Copyright (c) 2008 Steven G. Kargl, David Schultz, Bruce D. Evans. + * + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + */ + +/* + * ld128 version of k_tan.c. See ../src/k_tan.c for most comments. + */ + +#include "math.h" +#include "../ld/math_private.h" + +/* + * Domain [-0.67434, 0.67434], range ~[-3.37e-36, 1.982e-37] + * |tan(x)/x - t(x)| < 2**-117.8 (XXX should be ~1e-37) + * + * See ../ld80/k_cosl.c for more details about the polynomial. + */ +static const long double +T3 = 0x1.5555555555555555555555555553p-2L, +T5 = 0x1.1111111111111111111111111eb5p-3L, +T7 = 0x1.ba1ba1ba1ba1ba1ba1ba1b694cd6p-5L, +T9 = 0x1.664f4882c10f9f32d6bbe09d8bcdp-6L, +T11 = 0x1.226e355e6c23c8f5b4f5762322eep-7L, +T13 = 0x1.d6d3d0e157ddfb5fed8e84e27b37p-9L, +T15 = 0x1.7da36452b75e2b5fce9ee7c2c92ep-10L, +T17 = 0x1.355824803674477dfcf726649efep-11L, +T19 = 0x1.f57d7734d1656e0aceb716f614c2p-13L, +T21 = 0x1.967e18afcb180ed942dfdc518d6cp-14L, +T23 = 0x1.497d8eea21e95bc7e2aa79b9f2cdp-15L, +T25 = 0x1.0b132d39f055c81be49eff7afd50p-16L, +T27 = 0x1.b0f72d33eff7bfa2fbc1059d90b6p-18L, +T29 = 0x1.5ef2daf21d1113df38d0fbc00267p-19L, +T31 = 0x1.1c77d6eac0234988cdaa04c96626p-20L, +T33 = 0x1.cd2a5a292b180e0bdd701057dfe3p-22L, +T35 = 0x1.75c7357d0298c01a31d0a6f7d518p-23L, +T37 = 0x1.2f3190f4718a9a520f98f50081fcp-24L, +pio4 = 0x1.921fb54442d18469898cc51701b8p-1L, +pio4lo = 0x1.cd129024e088a67cc74020bbea60p-116L; + +static const double +T39 = 0.000000028443389121318352, /* 0x1e8a7592977938.0p-78 */ +T41 = 0.000000011981013102001973, /* 0x19baa1b1223219.0p-79 */ +T43 = 0.0000000038303578044958070, /* 0x107385dfb24529.0p-80 */ +T45 = 0.0000000034664378216909893, /* 0x1dc6c702a05262.0p-81 */ +T47 = -0.0000000015090641701997785, /* -0x19ecef3569ebb6.0p-82 */ +T49 = 0.0000000029449552300483952, /* 0x194c0668da786a.0p-81 */ +T51 = -0.0000000022006995706097711, /* -0x12e763b8845268.0p-81 */ +T53 = 0.0000000015468200913196612, /* 0x1a92fc98c29554.0p-82 */ +T55 = -0.00000000061311613386849674, /* -0x151106cbc779a9.0p-83 */ +T57 = 1.4912469681508012e-10; /* 0x147edbdba6f43a.0p-85 */ + +long double +__kernel_tanl(long double x, long double y, int iy) { + long double z, r, v, w, s; + long double osign; + int i; + + iy = (iy == 1 ? -1 : 1); /* XXX recover original interface */ + osign = (x >= 0 ? 1.0 : -1.0); /* XXX slow, probably wrong for -0 */ + if (fabsl(x) >= 0.67434) { + if (x < 0) { + x = -x; + y = -y; + } + z = pio4 - x; + w = pio4lo - y; + x = z + w; + y = 0.0; + i = 1; + } else + i = 0; + z = x * x; + w = z * z; + r = T5 + w * (T9 + w * (T13 + w * (T17 + w * (T21 + + w * (T25 + w * (T29 + w * (T33 + + w * (T37 + w * (T41 + w * (T45 + w * (T49 + w * (T53 + + w * T57)))))))))))); + v = z * (T7 + w * (T11 + w * (T15 + w * (T19 + w * (T23 + + w * (T27 + w * (T31 + w * (T35 + + w * (T39 + w * (T43 + w * (T47 + w * (T51 + w * T55)))))))))))); + s = z * x; + r = y + z * (s * (r + v) + y); + r += T3 * s; + w = x + r; + if (i == 1) { + v = (long double) iy; + return osign * + (v - 2.0 * (x - (w * w / (w + v) - r))); + } + if (iy == 1) + return w; + else { + /* + * if allow error up to 2 ulp, simply return + * -1.0 / (x+r) here + */ + /* compute -1.0 / (x+r) accurately */ + long double a, t; + z = w; + z = z + 0x1p32 - 0x1p32; + v = r - (z - x); /* z+v = r+x */ + t = a = -1.0 / w; /* a = -1.0/w */ + t = t + 0x1p32 - 0x1p32; + s = 1.0 + t * z; + return t + a * (s + t * v); + } +} From e1552d7841b5d28a00ac70873de818b641ee8449 Mon Sep 17 00:00:00 2001 From: local-dev Date: Thu, 28 May 2026 16:58:29 -0700 Subject: [PATCH 3/3] [libm] E: Regen Makefile.in to compile k_tanl.o The two preceding commits added `newlib/libm/ld80/k_tanl.c` and `newlib/libm/ld128/k_tanl.c` (back-ported from upstream newlib) and registered them in the per-directory `Makefile.inc` files via the `%C%_lsrc = ... %D%/k_tanl.c` lines. However, `newlib/Makefile.in` -- the top-level automake-generated Makefile template that the build system consumes -- was not regenerated. As a result, even though the source files compile and the `Makefile.inc` lists them, the build system never emits the `a-k_tanl.o` object and `libm.a` still ships with an undefined reference to `__kernel_tanl` (the function `s_tanl.o` and `tanl.o` both call). This patch adds the `a-k_tanl.o` references to `newlib/Makefile.in` in all the places where the existing `a-k_cosl.o` / `a-k_sinl.o` entries appear (the convention this newlib uses for committing the generated `Makefile.in` instead of relying on consumers having autoconf 2.69 + automake 1.16.5 installed). The four sections patched are: 1. Object lists per `HAVE_LIBM_MACHINE_*` arch flag, for both `libm/ld128/` and `libm/ld80/` (4 entries total). 2. `$(DEPDIR)/a-k_tanl.Po` entries (2 entries). 3. Object dependency rules `libm//a-k_tanl.$(OBJEXT): ...` (2 entries). 4. `am--include-marker` lines (2 entries). 5. Per-file build rules (`.o` + `.obj` variants for both arch dirs; 4 blocks of 5 lines each). The patch was produced by mirroring the existing `a-k_sinl.o` entries; running `autoreconf -fi` against this tree on a system with the correct autoconf/automake versions installed would produce the same diff (a future cleanup if the build system gets re-bootstrapped). Validated end-to-end: after this patch the toolchain image builds cleanly from a fresh checkout, `i686-nanvix-nm libm.a` reports `T __kernel_tanl`, and `s_tanl.o` / `tanl.o` link without warning. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- newlib/Makefile.in | 46 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/newlib/Makefile.in b/newlib/Makefile.in index 1b4bb64a51..944e12e396 100644 --- a/newlib/Makefile.in +++ b/newlib/Makefile.in @@ -3064,7 +3064,8 @@ am__objects_160 = libm/fenv/a-feclearexcept.$(OBJEXT) \ @HAVE_LIBM_MACHINE_AARCH64_FALSE@@HAVE_LIBM_MACHINE_RISCV_TRUE@ libm/ld128/a-invtrig.$(OBJEXT) \ @HAVE_LIBM_MACHINE_AARCH64_FALSE@@HAVE_LIBM_MACHINE_RISCV_TRUE@ libm/ld128/a-e_lgammal_r.$(OBJEXT) \ @HAVE_LIBM_MACHINE_AARCH64_FALSE@@HAVE_LIBM_MACHINE_RISCV_TRUE@ libm/ld128/a-k_cosl.$(OBJEXT) \ -@HAVE_LIBM_MACHINE_AARCH64_FALSE@@HAVE_LIBM_MACHINE_RISCV_TRUE@ libm/ld128/a-k_sinl.$(OBJEXT) +@HAVE_LIBM_MACHINE_AARCH64_FALSE@@HAVE_LIBM_MACHINE_RISCV_TRUE@ libm/ld128/a-k_sinl.$(OBJEXT) \ +@HAVE_LIBM_MACHINE_AARCH64_FALSE@@HAVE_LIBM_MACHINE_RISCV_TRUE@ libm/ld128/a-k_tanl.$(OBJEXT) @HAVE_LIBM_MACHINE_AARCH64_TRUE@am__objects_163 = \ @HAVE_LIBM_MACHINE_AARCH64_TRUE@ libm/ld128/a-e_powl.$(OBJEXT) \ @HAVE_LIBM_MACHINE_AARCH64_TRUE@ libm/ld128/a-s_erfl.$(OBJEXT) \ @@ -3075,7 +3076,8 @@ am__objects_160 = libm/fenv/a-feclearexcept.$(OBJEXT) \ @HAVE_LIBM_MACHINE_AARCH64_TRUE@ libm/ld128/a-invtrig.$(OBJEXT) \ @HAVE_LIBM_MACHINE_AARCH64_TRUE@ libm/ld128/a-e_lgammal_r.$(OBJEXT) \ @HAVE_LIBM_MACHINE_AARCH64_TRUE@ libm/ld128/a-k_cosl.$(OBJEXT) \ -@HAVE_LIBM_MACHINE_AARCH64_TRUE@ libm/ld128/a-k_sinl.$(OBJEXT) +@HAVE_LIBM_MACHINE_AARCH64_TRUE@ libm/ld128/a-k_sinl.$(OBJEXT) \ +@HAVE_LIBM_MACHINE_AARCH64_TRUE@ libm/ld128/a-k_tanl.$(OBJEXT) @HAVE_LIBM_MACHINE_AARCH64_TRUE@@HAVE_LONG_DOUBLE_TRUE@am__objects_164 = $(am__objects_163) @HAVE_LIBM_MACHINE_AMDGCN_TRUE@am__objects_165 = libm/machine/amdgcn/a-v64_mathcnst.$(OBJEXT) \ @HAVE_LIBM_MACHINE_AMDGCN_TRUE@ libm/machine/amdgcn/a-v64_reent.$(OBJEXT) \ @@ -3247,7 +3249,8 @@ am__objects_160 = libm/fenv/a-feclearexcept.$(OBJEXT) \ @HAVE_LIBM_MACHINE_I386_FALSE@@HAVE_LIBM_MACHINE_X86_64_TRUE@ libm/ld80/a-invtrig.$(OBJEXT) \ @HAVE_LIBM_MACHINE_I386_FALSE@@HAVE_LIBM_MACHINE_X86_64_TRUE@ libm/ld80/a-e_lgammal_r.$(OBJEXT) \ @HAVE_LIBM_MACHINE_I386_FALSE@@HAVE_LIBM_MACHINE_X86_64_TRUE@ libm/ld80/a-k_cosl.$(OBJEXT) \ -@HAVE_LIBM_MACHINE_I386_FALSE@@HAVE_LIBM_MACHINE_X86_64_TRUE@ libm/ld80/a-k_sinl.$(OBJEXT) +@HAVE_LIBM_MACHINE_I386_FALSE@@HAVE_LIBM_MACHINE_X86_64_TRUE@ libm/ld80/a-k_sinl.$(OBJEXT) \ +@HAVE_LIBM_MACHINE_I386_FALSE@@HAVE_LIBM_MACHINE_X86_64_TRUE@ libm/ld80/a-k_tanl.$(OBJEXT) @HAVE_LIBM_MACHINE_I386_TRUE@am__objects_171 = \ @HAVE_LIBM_MACHINE_I386_TRUE@ libm/ld80/a-b_tgammal.$(OBJEXT) \ @HAVE_LIBM_MACHINE_I386_TRUE@ libm/ld80/a-e_powl.$(OBJEXT) \ @@ -3260,7 +3263,8 @@ am__objects_160 = libm/fenv/a-feclearexcept.$(OBJEXT) \ @HAVE_LIBM_MACHINE_I386_TRUE@ libm/ld80/a-invtrig.$(OBJEXT) \ @HAVE_LIBM_MACHINE_I386_TRUE@ libm/ld80/a-e_lgammal_r.$(OBJEXT) \ @HAVE_LIBM_MACHINE_I386_TRUE@ libm/ld80/a-k_cosl.$(OBJEXT) \ -@HAVE_LIBM_MACHINE_I386_TRUE@ libm/ld80/a-k_sinl.$(OBJEXT) +@HAVE_LIBM_MACHINE_I386_TRUE@ libm/ld80/a-k_sinl.$(OBJEXT) \ +@HAVE_LIBM_MACHINE_I386_TRUE@ libm/ld80/a-k_tanl.$(OBJEXT) @HAVE_LIBM_MACHINE_I386_TRUE@@HAVE_LONG_DOUBLE_TRUE@am__objects_172 = $(am__objects_171) @HAVE_LIBM_MACHINE_MIPS_TRUE@am__objects_173 = libm/machine/mips/a-feclearexcept.$(OBJEXT) \ @HAVE_LIBM_MACHINE_MIPS_TRUE@ libm/machine/mips/a-fegetenv.$(OBJEXT) \ @@ -5346,6 +5350,7 @@ am__depfiles_remade = libc/argz/$(DEPDIR)/a-argz_add.Po \ libm/ld128/$(DEPDIR)/a-invtrig.Po \ libm/ld128/$(DEPDIR)/a-k_cosl.Po \ libm/ld128/$(DEPDIR)/a-k_sinl.Po \ + libm/ld128/$(DEPDIR)/a-k_tanl.Po \ libm/ld128/$(DEPDIR)/a-s_erfl.Po \ libm/ld128/$(DEPDIR)/a-s_exp2l.Po \ libm/ld128/$(DEPDIR)/a-s_expl.Po \ @@ -5356,6 +5361,7 @@ am__depfiles_remade = libc/argz/$(DEPDIR)/a-argz_add.Po \ libm/ld80/$(DEPDIR)/a-invtrig.Po \ libm/ld80/$(DEPDIR)/a-k_cosl.Po \ libm/ld80/$(DEPDIR)/a-k_sinl.Po \ + libm/ld80/$(DEPDIR)/a-k_tanl.Po \ libm/ld80/$(DEPDIR)/a-s_cospil.Po \ libm/ld80/$(DEPDIR)/a-s_erfl.Po \ libm/ld80/$(DEPDIR)/a-s_exp2l.Po \ @@ -13127,6 +13133,8 @@ libm/ld128/a-k_cosl.$(OBJEXT): libm/ld128/$(am__dirstamp) \ libm/ld128/$(DEPDIR)/$(am__dirstamp) libm/ld128/a-k_sinl.$(OBJEXT): libm/ld128/$(am__dirstamp) \ libm/ld128/$(DEPDIR)/$(am__dirstamp) +libm/ld128/a-k_tanl.$(OBJEXT): libm/ld128/$(am__dirstamp) \ + libm/ld128/$(DEPDIR)/$(am__dirstamp) libm/machine/amdgcn/$(am__dirstamp): @$(MKDIR_P) libm/machine/amdgcn @: > libm/machine/amdgcn/$(am__dirstamp) @@ -13639,6 +13647,8 @@ libm/ld80/a-k_cosl.$(OBJEXT): libm/ld80/$(am__dirstamp) \ libm/ld80/$(DEPDIR)/$(am__dirstamp) libm/ld80/a-k_sinl.$(OBJEXT): libm/ld80/$(am__dirstamp) \ libm/ld80/$(DEPDIR)/$(am__dirstamp) +libm/ld80/a-k_tanl.$(OBJEXT): libm/ld80/$(am__dirstamp) \ + libm/ld80/$(DEPDIR)/$(am__dirstamp) libm/machine/mips/$(am__dirstamp): @$(MKDIR_P) libm/machine/mips @: > libm/machine/mips/$(am__dirstamp) @@ -16448,6 +16458,7 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@libm/ld128/$(DEPDIR)/a-invtrig.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@libm/ld128/$(DEPDIR)/a-k_cosl.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@libm/ld128/$(DEPDIR)/a-k_sinl.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@libm/ld128/$(DEPDIR)/a-k_tanl.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@libm/ld128/$(DEPDIR)/a-s_erfl.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@libm/ld128/$(DEPDIR)/a-s_exp2l.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@libm/ld128/$(DEPDIR)/a-s_expl.Po@am__quote@ # am--include-marker @@ -16458,6 +16469,7 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@libm/ld80/$(DEPDIR)/a-invtrig.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@libm/ld80/$(DEPDIR)/a-k_cosl.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@libm/ld80/$(DEPDIR)/a-k_sinl.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@libm/ld80/$(DEPDIR)/a-k_tanl.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@libm/ld80/$(DEPDIR)/a-s_cospil.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@libm/ld80/$(DEPDIR)/a-s_erfl.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@libm/ld80/$(DEPDIR)/a-s_exp2l.Po@am__quote@ # am--include-marker @@ -46370,12 +46382,25 @@ libm/ld128/a-k_sinl.o: libm/ld128/k_sinl.c @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -c -o libm/ld128/a-k_sinl.o `test -f 'libm/ld128/k_sinl.c' || echo '$(srcdir)/'`libm/ld128/k_sinl.c +libm/ld128/a-k_tanl.o: libm/ld128/k_tanl.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -MT libm/ld128/a-k_tanl.o -MD -MP -MF libm/ld128/$(DEPDIR)/a-k_tanl.Tpo -c -o libm/ld128/a-k_tanl.o `test -f 'libm/ld128/k_tanl.c' || echo '$(srcdir)/'`libm/ld128/k_tanl.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) libm/ld128/$(DEPDIR)/a-k_tanl.Tpo libm/ld128/$(DEPDIR)/a-k_tanl.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libm/ld128/k_tanl.c' object='libm/ld128/a-k_tanl.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -c -o libm/ld128/a-k_tanl.o `test -f 'libm/ld128/k_tanl.c' || echo '$(srcdir)/'`libm/ld128/k_tanl.c + libm/ld128/a-k_sinl.obj: libm/ld128/k_sinl.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -MT libm/ld128/a-k_sinl.obj -MD -MP -MF libm/ld128/$(DEPDIR)/a-k_sinl.Tpo -c -o libm/ld128/a-k_sinl.obj `if test -f 'libm/ld128/k_sinl.c'; then $(CYGPATH_W) 'libm/ld128/k_sinl.c'; else $(CYGPATH_W) '$(srcdir)/libm/ld128/k_sinl.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) libm/ld128/$(DEPDIR)/a-k_sinl.Tpo libm/ld128/$(DEPDIR)/a-k_sinl.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libm/ld128/k_sinl.c' object='libm/ld128/a-k_sinl.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -c -o libm/ld128/a-k_sinl.obj `if test -f 'libm/ld128/k_sinl.c'; then $(CYGPATH_W) 'libm/ld128/k_sinl.c'; else $(CYGPATH_W) '$(srcdir)/libm/ld128/k_sinl.c'; fi` +libm/ld128/a-k_tanl.obj: libm/ld128/k_tanl.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -MT libm/ld128/a-k_tanl.obj -MD -MP -MF libm/ld128/$(DEPDIR)/a-k_tanl.Tpo -c -o libm/ld128/a-k_tanl.obj `if test -f 'libm/ld128/k_tanl.c'; then $(CYGPATH_W) 'libm/ld128/k_tanl.c'; else $(CYGPATH_W) '$(srcdir)/libm/ld128/k_tanl.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) libm/ld128/$(DEPDIR)/a-k_tanl.Tpo libm/ld128/$(DEPDIR)/a-k_tanl.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libm/ld128/k_tanl.c' object='libm/ld128/a-k_tanl.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -c -o libm/ld128/a-k_tanl.obj `if test -f 'libm/ld128/k_tanl.c'; then $(CYGPATH_W) 'libm/ld128/k_tanl.c'; else $(CYGPATH_W) '$(srcdir)/libm/ld128/k_tanl.c'; fi` libm/machine/amdgcn/a-v64_mathcnst.o: libm/machine/amdgcn/v64_mathcnst.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -MT libm/machine/amdgcn/a-v64_mathcnst.o -MD -MP -MF libm/machine/amdgcn/$(DEPDIR)/a-v64_mathcnst.Tpo -c -o libm/machine/amdgcn/a-v64_mathcnst.o `test -f 'libm/machine/amdgcn/v64_mathcnst.c' || echo '$(srcdir)/'`libm/machine/amdgcn/v64_mathcnst.c @@ -48554,12 +48579,25 @@ libm/ld80/a-k_sinl.o: libm/ld80/k_sinl.c @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -c -o libm/ld80/a-k_sinl.o `test -f 'libm/ld80/k_sinl.c' || echo '$(srcdir)/'`libm/ld80/k_sinl.c +libm/ld80/a-k_tanl.o: libm/ld80/k_tanl.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -MT libm/ld80/a-k_tanl.o -MD -MP -MF libm/ld80/$(DEPDIR)/a-k_tanl.Tpo -c -o libm/ld80/a-k_tanl.o `test -f 'libm/ld80/k_tanl.c' || echo '$(srcdir)/'`libm/ld80/k_tanl.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) libm/ld80/$(DEPDIR)/a-k_tanl.Tpo libm/ld80/$(DEPDIR)/a-k_tanl.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libm/ld80/k_tanl.c' object='libm/ld80/a-k_tanl.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -c -o libm/ld80/a-k_tanl.o `test -f 'libm/ld80/k_tanl.c' || echo '$(srcdir)/'`libm/ld80/k_tanl.c + libm/ld80/a-k_sinl.obj: libm/ld80/k_sinl.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -MT libm/ld80/a-k_sinl.obj -MD -MP -MF libm/ld80/$(DEPDIR)/a-k_sinl.Tpo -c -o libm/ld80/a-k_sinl.obj `if test -f 'libm/ld80/k_sinl.c'; then $(CYGPATH_W) 'libm/ld80/k_sinl.c'; else $(CYGPATH_W) '$(srcdir)/libm/ld80/k_sinl.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) libm/ld80/$(DEPDIR)/a-k_sinl.Tpo libm/ld80/$(DEPDIR)/a-k_sinl.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libm/ld80/k_sinl.c' object='libm/ld80/a-k_sinl.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -c -o libm/ld80/a-k_sinl.obj `if test -f 'libm/ld80/k_sinl.c'; then $(CYGPATH_W) 'libm/ld80/k_sinl.c'; else $(CYGPATH_W) '$(srcdir)/libm/ld80/k_sinl.c'; fi` +libm/ld80/a-k_tanl.obj: libm/ld80/k_tanl.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -MT libm/ld80/a-k_tanl.obj -MD -MP -MF libm/ld80/$(DEPDIR)/a-k_tanl.Tpo -c -o libm/ld80/a-k_tanl.obj `if test -f 'libm/ld80/k_tanl.c'; then $(CYGPATH_W) 'libm/ld80/k_tanl.c'; else $(CYGPATH_W) '$(srcdir)/libm/ld80/k_tanl.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) libm/ld80/$(DEPDIR)/a-k_tanl.Tpo libm/ld80/$(DEPDIR)/a-k_tanl.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libm/ld80/k_tanl.c' object='libm/ld80/a-k_tanl.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -c -o libm/ld80/a-k_tanl.obj `if test -f 'libm/ld80/k_tanl.c'; then $(CYGPATH_W) 'libm/ld80/k_tanl.c'; else $(CYGPATH_W) '$(srcdir)/libm/ld80/k_tanl.c'; fi` libm/machine/mips/a-feclearexcept.o: libm/machine/mips/feclearexcept.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libm_a_CPPFLAGS) $(CPPFLAGS) $(libm_a_CFLAGS) $(CFLAGS) -MT libm/machine/mips/a-feclearexcept.o -MD -MP -MF libm/machine/mips/$(DEPDIR)/a-feclearexcept.Tpo -c -o libm/machine/mips/a-feclearexcept.o `test -f 'libm/machine/mips/feclearexcept.c' || echo '$(srcdir)/'`libm/machine/mips/feclearexcept.c