Re: [PATCH v3] tree-optimization/120780: Support object size for containing objects

2025-07-03 Thread Siddhesh Poyarekar
On 2025-07-03 03:13, Jakub Jelinek wrote: On Thu, Jul 03, 2025 at 08:33:45AM +0200, Richard Biener wrote: On Wed, Jul 2, 2025 at 11:32 PM Siddhesh Poyarekar wrote: MEM_REF cast of a subobject to its containing object has negative offsets, which objsz sees as an invalid access. Support this u

Re: [PATCH v3] tree-optimization/120780: Support object size for containing objects

2025-07-03 Thread Jakub Jelinek
On Thu, Jul 03, 2025 at 08:33:45AM +0200, Richard Biener wrote: > On Wed, Jul 2, 2025 at 11:32 PM Siddhesh Poyarekar > wrote: > > > > MEM_REF cast of a subobject to its containing object has negative > > offsets, which objsz sees as an invalid access. Support this use case > > by peeking into th

Re: [PATCH v3] tree-optimization/120780: Support object size for containing objects

2025-07-02 Thread Richard Biener
On Wed, Jul 2, 2025 at 11:32 PM Siddhesh Poyarekar wrote: > > MEM_REF cast of a subobject to its containing object has negative > offsets, which objsz sees as an invalid access. Support this use case > by peeking into the structure to validate that the containing object > indeed contains a type o