Re: [PATCH v2 1/4] tree-object-size: use size_for_offset in more cases

2024-10-16 Thread Siddhesh Poyarekar
On 2024-09-27 06:31, Jakub Jelinek wrote: On Fri, Sep 20, 2024 at 12:40:26PM -0400, Siddhesh Poyarekar wrote: When wholesize != size, there is a reasonable opportunity for static object sizes also to be computed using size_for_offset, so use that. gcc/ChangeLog: * tree-object-size.cc (

Re: [PATCH v2 1/4] tree-object-size: use size_for_offset in more cases

2024-09-27 Thread Jakub Jelinek
On Fri, Sep 20, 2024 at 12:40:26PM -0400, Siddhesh Poyarekar wrote: > When wholesize != size, there is a reasonable opportunity for static > object sizes also to be computed using size_for_offset, so use that. > > gcc/ChangeLog: > > * tree-object-size.cc (plus_stmt_object_size): Call >

[PATCH v2 1/4] tree-object-size: use size_for_offset in more cases

2024-09-20 Thread Siddhesh Poyarekar
When wholesize != size, there is a reasonable opportunity for static object sizes also to be computed using size_for_offset, so use that. gcc/ChangeLog: * tree-object-size.cc (plus_stmt_object_size): Call SIZE_FOR_OFFSET for some negative offset cases. * testsuite/gcc.dg/b