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

2021-07-09 Thread Laurent Vivier
Le 06/07/2021 à 10:18, Thomas Huth a écrit : > 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

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

2021-07-06 Thread Richard Henderson
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 c

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

2021-07-06 Thread Max Filippov
On Tue, Jul 6, 2021 at 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 s

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

2021-07-06 Thread Philippe Mathieu-Daudé
On 7/6/21 10: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 inste

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

2021-07-06 Thread Thomas Huth
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 optimiz