Re: [PATCH v2 05/14] gimple: Handle tail padding when computing gimple_ops_offset

2024-11-20 Thread Richard Biener
On Tue, Nov 19, 2024 at 4:37 PM Lewis Hyatt wrote: > > On Tue, Nov 19, 2024 at 9:55 AM Richard Biener > wrote: > > > > On Sun, Nov 17, 2024 at 4:25 AM Lewis Hyatt wrote: > > > > > > The array gimple_ops_offset_[], which is used to find the trailing op[] > > > array for a given gimple struct, is

Re: [PATCH v2 05/14] gimple: Handle tail padding when computing gimple_ops_offset

2024-11-19 Thread Lewis Hyatt
On Tue, Nov 19, 2024 at 9:55 AM Richard Biener wrote: > > On Sun, Nov 17, 2024 at 4:25 AM Lewis Hyatt wrote: > > > > The array gimple_ops_offset_[], which is used to find the trailing op[] > > array for a given gimple struct, is computed assuming that op[] will be > > found at sizeof(tree) bytes

Re: [PATCH v2 05/14] gimple: Handle tail padding when computing gimple_ops_offset

2024-11-19 Thread Richard Biener
On Sun, Nov 17, 2024 at 4:25 AM Lewis Hyatt wrote: > > The array gimple_ops_offset_[], which is used to find the trailing op[] > array for a given gimple struct, is computed assuming that op[] will be > found at sizeof(tree) bytes away from the end of the struct. This is only > correct if the alig

[PATCH v2 05/14] gimple: Handle tail padding when computing gimple_ops_offset

2024-11-16 Thread Lewis Hyatt
The array gimple_ops_offset_[], which is used to find the trailing op[] array for a given gimple struct, is computed assuming that op[] will be found at sizeof(tree) bytes away from the end of the struct. This is only correct if the alignment requirement of a pointer is the same as the alignment re