https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107976
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #1) > ncases = tree_to_shwi (range) + 1; > labelvec = XALLOCAVEC (rtx, ncases); > memset (labelvec, 0, ncases * sizeof (rtx)); > > > I think this is a won't fix. > Doctor, it hurts when I bend my arm this way. > Don't bend it that way then. Changing the above to heap allocation would be easy - of course we'd generate a huge number of labels then which eventually will lead to different issues. Using heap allocation or an auto_vec and capping the maximum of jump-table-max-growth-ratio-for-{size,speed} to something sensible (the defaults are 300 and 800) would be appropriate I think.