Re: [PATCH RFA] gimplify: avoid unnecessary copy of init array [PR105838]

2022-12-17 Thread Jeff Law via Gcc-patches
On 12/8/22 15:01, Jason Merrill via Gcc-patches wrote: After the previous patches, I noticed that we were putting the array of strings into .rodata, but then memcpying it into an automatic array, which is pointless; we should be able to use it directly. C++ doesn't allow us to do this for

[PATCH RFA] gimplify: avoid unnecessary copy of init array [PR105838]

2022-12-08 Thread Jason Merrill via Gcc-patches
After the previous patches, I noticed that we were putting the array of strings into .rodata, but then memcpying it into an automatic array, which is pointless; we should be able to use it directly. C++ doesn't allow us to do this for the backing array of an initializer_list, but should be able