Re: [PATCH] pch: Fix streaming of strings with embedded null bytes

2022-10-19 Thread Lewis Hyatt via Gcc-patches
On Wed, Oct 19, 2022 at 8:23 AM Jakub Jelinek wrote: > > On Wed, Oct 19, 2022 at 01:17:02PM +0100, Richard Sandiford wrote: > > Jakub Jelinek writes: > > > On Wed, Oct 19, 2022 at 12:54:11PM +0100, Richard Sandiford via > > > Gcc-patches wrote: > > >> Lewis Hyatt via Gcc-patches writes: > > >>

Re: [PATCH] pch: Fix streaming of strings with embedded null bytes

2022-10-19 Thread Jakub Jelinek via Gcc-patches
On Wed, Oct 19, 2022 at 01:17:02PM +0100, Richard Sandiford wrote: > Jakub Jelinek writes: > > On Wed, Oct 19, 2022 at 12:54:11PM +0100, Richard Sandiford via Gcc-patches > > wrote: > >> Lewis Hyatt via Gcc-patches writes: > >> > When a GTY'ed struct is streamed to PCH, any plain char* pointers

Re: [PATCH] pch: Fix streaming of strings with embedded null bytes

2022-10-19 Thread Richard Sandiford via Gcc-patches
Jakub Jelinek writes: > On Wed, Oct 19, 2022 at 12:54:11PM +0100, Richard Sandiford via Gcc-patches > wrote: >> Lewis Hyatt via Gcc-patches writes: >> > When a GTY'ed struct is streamed to PCH, any plain char* pointers it >> > contains >> > (whether they live in GC-controlled memory or not) wil

Re: [PATCH] pch: Fix streaming of strings with embedded null bytes

2022-10-19 Thread Jakub Jelinek via Gcc-patches
On Wed, Oct 19, 2022 at 12:54:11PM +0100, Richard Sandiford via Gcc-patches wrote: > Lewis Hyatt via Gcc-patches writes: > > When a GTY'ed struct is streamed to PCH, any plain char* pointers it > > contains > > (whether they live in GC-controlled memory or not) will be marked for PCH > > output

Re: [PATCH] pch: Fix streaming of strings with embedded null bytes

2022-10-19 Thread Richard Sandiford via Gcc-patches
Lewis Hyatt via Gcc-patches writes: > When a GTY'ed struct is streamed to PCH, any plain char* pointers it contains > (whether they live in GC-controlled memory or not) will be marked for PCH > output by the routine gt_pch_note_object in ggc-common.cc. This routine > special-cases plain char* stri