On Sun, May 16, 2021 at 11:12 PM Joern Rennecke
<joern.renne...@embecosm.com> wrote:
>
> braced_list_to_string creates a host string, so it's not suitable when
> e.g. the host
> has 8 bit chars, but the target has 16 bit chars.
>
> The attached patch checks if  host and target char sizes are different
> and in that case
> falls back to leaving the array as an array.

The check might be better suited in braced_list_to_string itself (just
in case we get more uses).

OK with that change.

Richard.

> Bootstrapped on x86_64-pc-linux-gnu.
>
> FWIW, we also have patches for cpplib / lexer / parser char and string
> handling to make 8 -> 16 bit char cross-compiling work, but they can't
> be ported forward easily because the parser has changed since gcc9.

Reply via email to