Re: fenv-env tests do not compile on sh4

2025-06-15 Thread Bruno Haible via Gnulib discussion list
Collin Funk wrote: > I haven't run 'make check' since I do not have access to a sh4 machine. Neither do I, but ... > 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 >$ e

Re: fenv-env tests do not compile on sh4

2025-06-15 Thread Collin Funk
Hi Bruno, Bruno Haible writes: > Fixed through this patch: > > > 2025-06-15 Bruno Haible > > fenv-environment tests: Fix compilation errors on Linux/sh4. > Reported by Collin Funk in > . > * tests/tes

Re: fenv-env tests do not compile on sh4

2025-06-15 Thread Bruno Haible via Gnulib discussion list
Hi Collin, > I found that the fenv-env tests do not compile on sh4. This is the > error: > > test-fenv-env-2.c: In function 'main': > test-fenv-env-2.c:49:15: error: 'FE_UPWARD' undeclared (first use in this > function)

Re: fenv-env tests do not compile on sh4

2025-06-14 Thread Collin Funk
Collin Funk writes: > Should these tests do something like this? > > /* Modify the current environment. */ > #if !defined __sh__ > #define ENV1_ROUNDING_DIRECTION FE_TONEAREST > #define ENV2_ROUNDING_DIRECTION FE_TOWARDZERO > #else > #define ENV1_ROUNDING_DIRECTION FE_UPW

fenv-env tests do not compile on sh4

2025-06-14 Thread Collin Funk
Hi Bruno, I found that the fenv-env tests do not compile on sh4. This is the error: test-fenv-env-2.c: In function 'main': test-fenv-env-2.c:49:15: error: 'FE_UPWARD' undeclared (first use in this function) 49 | f