]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/99121 - avoid ICEing for non-constant sizes
authorRichard Biener <rguenther@suse.de>
Thu, 7 Apr 2022 09:59:04 +0000 (11:59 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 7 Apr 2022 09:59:04 +0000 (11:59 +0200)
commit4662984506b774213df9c4429d2c59664bb09adc
tree170a16476e63f2a5ebbce85cbefa93b2b52c22ad
parent5155015ce57dc133e006f87fdf0237a5f259bebd
tree-optimization/99121 - avoid ICEing for non-constant sizes

The following is a simple fix to avoid ICEing on non-constant
sizes of ARRAY_REFs instead of backporting too intrusive changes
done on trunk.

2022-04-07  Richard Biener  <rguenther@suse.de>

PR tree-optimization/99121
* gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
Bail out for non-constant type size.
gcc/gimple-array-bounds.cc