Re: [PATCH] c-family: Fix hang with -Wsequence-point [PR98126]

2020-12-07 Thread Jason Merrill via Gcc-patches
On 12/4/20 10:40 PM, Marek Polacek wrote: verify_sequence_points uses verify_tree to recursively walk the subexpressions of an expression, and while recursing, it also keeps lists of expressions found after/before a sequence point. For a large expression, the list can grow significantly. And mer

[PATCH] c-family: Fix hang with -Wsequence-point [PR98126]

2020-12-04 Thread Marek Polacek via Gcc-patches
verify_sequence_points uses verify_tree to recursively walk the subexpressions of an expression, and while recursing, it also keeps lists of expressions found after/before a sequence point. For a large expression, the list can grow significantly. And merge_tlist is at least N(n^2): for a list of l