Re: Avoid overflow in ipa-modref-tree.cc

2022-04-12 Thread Jakub Jelinek via Gcc-patches
On Mon, Apr 11, 2022 at 12:44:32AM +0200, Jan Hubicka via Gcc-patches wrote: > Hi, > the testcase triggers ICE since computation overflows on two accesses > that are very far away d->b[-144115188075855873] and d->b[144678138029277184]. > This patch makes the relevant part of modref to use

Avoid overflow in ipa-modref-tree.cc

2022-04-10 Thread Jan Hubicka via Gcc-patches
Hi, the testcase triggers ICE since computation overflows on two accesses that are very far away d->b[-144115188075855873] and d->b[144678138029277184]. This patch makes the relevant part of modref to use poly_offset_int. It is kind of weird to store bit offsets into poly_int64 but it is what