Hi Bruno,

Bruno Haible <br...@clisp.org> writes:

> Fixed through this patch:
>
>
> 2025-06-15  Bruno Haible  <br...@clisp.org>
>
>       fenv-environment tests: Fix compilation errors on Linux/sh4.
>       Reported by Collin Funk in
>       <https://lists.gnu.org/archive/html/bug-gnulib/2025-06/msg00124.html>.
>       * tests/test-fenv-env-2.c (FE_UPWARD, FE_DOWNWARD): Define as aliases.
>       * tests/test-fenv-env-3.c: Likewise.
>       * tests/test-fenv-env-4.c: Likewise.
>       * tests/test-fenv-env-5.c: Likewise.

Thanks, I can confirm that it builds now.

I haven't run 'make check' since I do not have access to a sh4 machine.

One could do the following in a debian container:

   $ apt install gcc-sh4-linux-gnu gcc-sh4-linux-gnu libc6-sh4-cross
   $ apt install qemu-system qemu-user-binfmt
   $ export QEMU_LD_PREFIX='/usr/sh4-linux-gnu'
   $ ./configure --host=sh4-linux-gnu
   $ make check

But I think I recall you saying that qemu's floating point emulation
isn't perfect.

Collin

Reply via email to