Re: [PATCH] introduce --param max-object-size

2020-12-01 Thread Jeff Law via Gcc-patches
On 11/30/20 3:21 PM, Martin Sebor wrote: > On 11/30/20 1:29 PM, Jeff Law wrote: >> >> >> On 11/17/20 7:09 PM, Martin Sebor wrote: >>> On 11/16/20 4:54 PM, Jeff Law wrote: On 11/16/20 2:04 AM, Richard Biener via Gcc-patches wrote: > On Sun, Nov 15, 2020 at 1:46 AM Martin Sebor via G

Re: [PATCH] introduce --param max-object-size

2020-11-30 Thread Martin Sebor via Gcc-patches
On 11/30/20 1:29 PM, Jeff Law wrote: On 11/17/20 7:09 PM, Martin Sebor wrote: On 11/16/20 4:54 PM, Jeff Law wrote: On 11/16/20 2:04 AM, Richard Biener via Gcc-patches wrote: On Sun, Nov 15, 2020 at 1:46 AM Martin Sebor via Gcc-patches wrote: GCC considers PTRDIFF_MAX - 1 to be the size of

Re: [PATCH] introduce --param max-object-size

2020-11-30 Thread Jeff Law via Gcc-patches
On 11/17/20 7:09 PM, Martin Sebor wrote: > On 11/16/20 4:54 PM, Jeff Law wrote: >> >> On 11/16/20 2:04 AM, Richard Biener via Gcc-patches wrote: >>> On Sun, Nov 15, 2020 at 1:46 AM Martin Sebor via Gcc-patches >>> wrote: GCC considers PTRDIFF_MAX - 1 to be the size of the largest object >>

Re: [PATCH] introduce --param max-object-size

2020-11-17 Thread Martin Sebor via Gcc-patches
On 11/16/20 4:54 PM, Jeff Law wrote: On 11/16/20 2:04 AM, Richard Biener via Gcc-patches wrote: On Sun, Nov 15, 2020 at 1:46 AM Martin Sebor via Gcc-patches wrote: GCC considers PTRDIFF_MAX - 1 to be the size of the largest object so that the difference between a pointer to the byte just past

Re: [PATCH] introduce --param max-object-size

2020-11-16 Thread Jeff Law via Gcc-patches
On 11/16/20 2:04 AM, Richard Biener via Gcc-patches wrote: > On Sun, Nov 15, 2020 at 1:46 AM Martin Sebor via Gcc-patches > wrote: >> GCC considers PTRDIFF_MAX - 1 to be the size of the largest object >> so that the difference between a pointer to the byte just past its >> end and the first one

Re: [PATCH] introduce --param max-object-size

2020-11-16 Thread Richard Biener via Gcc-patches
On Sun, Nov 15, 2020 at 1:46 AM Martin Sebor via Gcc-patches wrote: > > GCC considers PTRDIFF_MAX - 1 to be the size of the largest object > so that the difference between a pointer to the byte just past its > end and the first one is no more than PTRDIFF_MAX. This is too > liberal in LP64 on mos

[PATCH] introduce --param max-object-size

2020-11-14 Thread Martin Sebor via Gcc-patches
GCC considers PTRDIFF_MAX - 1 to be the size of the largest object so that the difference between a pointer to the byte just past its end and the first one is no more than PTRDIFF_MAX. This is too liberal in LP64 on most systems because the size of the address space is constrained to much less th