]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/105232 - handle overly large sizes in component_ref_size
authorRichard Biener <rguenther@suse.de>
Tue, 12 Apr 2022 07:54:32 +0000 (09:54 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 12 Apr 2022 09:49:59 +0000 (11:49 +0200)
commit008d568ac7eba4057172c52d306e09d174041c59
tree6c5d3b445cc416ccc7ac6f779114634f247fe18f
parent249aa9348ddf06b8961a3418c74e6d83963cdc1e
tree-optimization/105232 - handle overly large sizes in component_ref_size

The following properly checks tree_fits_poly_int64_p before converting
a size to a poly_int64.

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

PR tree-optimization/105232
* tree.c (component_ref_size): Bail out for too large
or non-constant sizes.

(cherry picked from commit 1bd96873cf73c4f59de48e9bc0d17a498f1ede04)
gcc/tree.c