qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] target/xtensa/xtensa-semi: Fix compilation problem on Haiku


From: Richard Henderson
Subject: Re: [PATCH] target/xtensa/xtensa-semi: Fix compilation problem on Haiku
Date: Tue, 6 Jul 2021 14:07:54 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

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<richard.j.zak@gmail.com>
Signed-off-by: Thomas Huth<thuth@redhat.com>
---
  target/xtensa/xtensa-semi.c | 84 +++++++++++++++++--------------------
  1 file changed, 39 insertions(+), 45 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]