On Tue, Jul 6, 2021 at 1:18 AM Thomas Huth <[email protected]> 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(-)

Acked-by: Max Filippov <[email protected]>

-- 
Thanks.
-- Max

Reply via email to