Re: [PATCH] libcpp: Avoid PREV_WHITE and other random content on CPP_PADDING tokens

2022-02-01 Thread Jason Merrill via Gcc-patches
On 2/1/22 10:31, Jakub Jelinek wrote: On Tue, Feb 01, 2022 at 10:03:57AM +0100, Jakub Jelinek via Gcc-patches wrote: I wonder if we shouldn't replace that toks[0] = pfile->directive_result; line with toks[0] = pfile->avoid_paste; or even replace those toks = XNEW (cpp_token)

[PATCH] libcpp: Avoid PREV_WHITE and other random content on CPP_PADDING tokens

2022-02-01 Thread Jakub Jelinek via Gcc-patches
On Tue, Feb 01, 2022 at 10:03:57AM +0100, Jakub Jelinek via Gcc-patches wrote: > I wonder if we shouldn't replace that > toks[0] = pfile->directive_result; > line with > toks[0] = pfile->avoid_paste; > or even replace those > toks = XNEW (cpp_token); > toks[0] = pfile->direc