[PATCH v3 3/8] tree-object-size: Save sizes as trees and support negative offsets

2021-11-25 Thread Siddhesh Poyarekar
Transform tree-object-size to operate on tree objects instead of host wide integers. This makes it easier to extend to dynamic expressions for object sizes. The compute_builtin_object_size interface also now returns a tree expression instead of HOST_WIDE_INT, so callers have been adjusted to acco

Re: [PATCH v3 3/8] tree-object-size: Save sizes as trees and support negative offsets

2021-11-26 Thread Jakub Jelinek via Gcc-patches
On Fri, Nov 26, 2021 at 10:58:46AM +0530, Siddhesh Poyarekar wrote: > Transform tree-object-size to operate on tree objects instead of host > wide integers. This makes it easier to extend to dynamic expressions > for object sizes. > > The compute_builtin_object_size interface also now returns a t

Re: [PATCH v3 3/8] tree-object-size: Save sizes as trees and support negative offsets

2021-11-26 Thread Siddhesh Poyarekar
On 11/26/21 22:26, Jakub Jelinek wrote: On Fri, Nov 26, 2021 at 10:58:46AM +0530, Siddhesh Poyarekar wrote: Transform tree-object-size to operate on tree objects instead of host wide integers. This makes it easier to extend to dynamic expressions for object sizes. The compute_builtin_object_si

Re: [PATCH v3 3/8] tree-object-size: Save sizes as trees and support negative offsets

2021-11-26 Thread Jakub Jelinek via Gcc-patches
On Fri, Nov 26, 2021 at 11:29:41PM +0530, Siddhesh Poyarekar wrote: > > > The trees in object_sizes are each a TREE_VEC with the first element > > > being the bytes from the pointer to the end of the object and the > > > second, the size of the whole object. This allows analysis of negative > > >

Re: [PATCH v3 3/8] tree-object-size: Save sizes as trees and support negative offsets

2021-11-26 Thread Siddhesh Poyarekar
On 11/26/21 23:34, Jakub Jelinek wrote: On Fri, Nov 26, 2021 at 11:29:41PM +0530, Siddhesh Poyarekar wrote: The trees in object_sizes are each a TREE_VEC with the first element being the bytes from the pointer to the end of the object and the second, the size of the whole object. This allows an