Re: RFA: Don't squash target character arrays into a narrower host string

2021-05-17 Thread Richard Biener via Gcc-patches
On Sun, May 16, 2021 at 11:12 PM Joern Rennecke 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 > fall

RFA: Don't squash target character arrays into a narrower host string

2021-05-16 Thread Joern Rennecke
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. Bootstrapped on x86_64-pc-lin