sh4 support
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Thu, 2 Jan 2025 01:29:54 +0000 (20:29 -0500)
committerMo Zhou <lumin@debian.org>
Thu, 2 Jan 2025 01:29:54 +0000 (20:29 -0500)
commiteb6efee4923d70137545c36baf9337524a4b14dd
treeb3c95477672962f28b208dde6681f0a6a5c674a8
parent8edc20c500fe9f482c7ea35a3e8172689c84e6a3
sh4 support

Forwarded: not yet.
BTS: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027168

onetbb currently FTBFS on sh4 because the source code assumes that the target
FPU supports all four rounding modes (FE_TONEAREST, FE_DOWNWARD, FE_UPWARD and
FE_TOWARDZERO) which is not the case on sh4 which supports FE_TONEAREST and
FE_TOWARDZERO only [1].

The attached patch fixes these assumptions for sh4 and makes the code build. I
have already patched and uploaded the package to the unreleased distribution
so that the mold linker can build on sh4 as well.

I will forward the patch later after reformating it.
===================================================================

Gbp-Pq: Name sh4-support.patch
test/common/fp_control.h