Re: [PATCH] switch expansion: limit JT growth param values

2023-01-11 Thread Richard Biener via Gcc-patches
On Wed, Jan 11, 2023 at 11:31 AM Martin Liška wrote: > > Currently, one can request a huge jump table creation which > leads to a non-sensual huge output. Moreover, use auto_vec rather > than a stack-allocated array. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Re

[PATCH] switch expansion: limit JT growth param values

2023-01-11 Thread Martin Liška
Currently, one can request a huge jump table creation which leads to a non-sensual huge output. Moreover, use auto_vec rather than a stack-allocated array. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin PR middle-end/107976 g