Re: [PATCH] avoid assuming every type has a size (PR 89662)

2019-03-13 Thread Richard Biener
On Tue, Mar 12, 2019 at 5:36 PM Martin Sebor wrote: > > On 3/12/19 2:20 AM, Richard Biener wrote: > > On Mon, Mar 11, 2019 at 9:16 PM Martin Sebor wrote: > >> > >> A -Warray-bounds enhancement committed last year into GCC 9 > >> introduced an assumption that the MEM_REF type argument has > >> a

Re: [PATCH] avoid assuming every type has a size (PR 89662)

2019-03-12 Thread Martin Sebor
On 3/12/19 2:20 AM, Richard Biener wrote: On Mon, Mar 11, 2019 at 9:16 PM Martin Sebor wrote: A -Warray-bounds enhancement committed last year into GCC 9 introduced an assumption that the MEM_REF type argument has a size. The test case submitted in PR89662 does pointer addition on void*, in

Re: [PATCH] avoid assuming every type has a size (PR 89662)

2019-03-12 Thread Richard Biener
On Mon, Mar 11, 2019 at 9:16 PM Martin Sebor wrote: > > A -Warray-bounds enhancement committed last year into GCC 9 > introduced an assumption that the MEM_REF type argument has > a size. The test case submitted in PR89662 does pointer > addition on void*, in which the MEM_REF type is void*,

[PATCH] avoid assuming every type has a size (PR 89662)

2019-03-11 Thread Martin Sebor
A -Warray-bounds enhancement committed last year into GCC 9 introduced an assumption that the MEM_REF type argument has a size. The test case submitted in PR89662 does pointer addition on void*, in which the MEM_REF type is void*, which breaks the assumption. The attached change removes this