On 7/6/21 1:18 AM, Thomas Huth wrote:
The errno numbers are very large on Haiku, so the linking currently
fails there with a "final link failed: memory exhausted" error
message. We should not use the errno number as array indexes here,
thus convert the code to a switch-case statement instead. A clever
compiler should be able to optimize this code in a similar way
anway.

Reported-by: Richard Zak<[email protected]>
Signed-off-by: Thomas Huth<[email protected]>
---
  target/xtensa/xtensa-semi.c | 84 +++++++++++++++++--------------------
  1 file changed, 39 insertions(+), 45 deletions(-)

Reviewed-by: Richard Henderson <[email protected]>

r~

Reply via email to