tree-optimization/103759: Use sizetype everywhere for object sizes
commitcc032ec1ecb34b006f42e170ccb9d76aa42fd8eb
authorSiddhesh Poyarekar <siddhesh@gotplt.org>
Sat, 18 Dec 2021 11:16:43 +0000 (18 16:46 +0530)
committerSiddhesh Poyarekar <siddhesh@gotplt.org>
Sat, 18 Dec 2021 11:16:44 +0000 (18 16:46 +0530)
tree5c16486cec75a1a5d41f84ceb699eb1d4510c4ec
parent21423a1dfa079d4cd218f69d2fab9fe65a69fedb
tree-optimization/103759: Use sizetype everywhere for object sizes

Since all computations in tree-object-size are now done in sizetype and
not HOST_WIDE_INT, comparisons with HOST_WIDE_INT based unknown and
initval would be incorrect.  Instead, use the sizetype trees directly to
generate and evaluate initval and unknown size values.

gcc/ChangeLog:

PR tree-optimization/103759
* tree-object-size.c (unknown, initval): Remove functions.
(size_unknown, size_initval, size_unknown_p): Operate directly
on trees.

Signed-off-by: Siddhesh Poyarekar <siddhesh@gotplt.org>
gcc/tree-object-size.c