On 12/18/2017 08:10 AM, Marek Polacek wrote: > I'm not entirely up to speed with this code, but this one seemed sufficiently > obvious: check INTEGRAL_TYPE_P before looking at a tree's min/max value. > Otherwise, go with maxobjsize. > > Bootstrapped/regtested on x86_64-linux, ok for trunk? > > 2017-12-18 Marek Polacek <pola...@redhat.com> > > PR middle-end/83463 > * gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): > Check if TYPE is INTEGRAL_TYPE_P before accessing its min/max > values. > > * gcc.dg/pr83463.c: New test. OK. jeff
- PATCH to fix -Wrestrict ICE (PR middle-end/83463) Marek Polacek
- Re: PATCH to fix -Wrestrict ICE (PR middle-end/83463) Jeff Law
- Re: PATCH to fix -Wrestrict ICE (PR middle-end/8346... Jakub Jelinek
- Re: PATCH to fix -Wrestrict ICE (PR middle-end/83463) Martin Sebor
- Re: PATCH to fix -Wrestrict ICE (PR middle-end/8346... Jakub Jelinek
- Re: PATCH to fix -Wrestrict ICE (PR middle-end/... Martin Sebor
- Re: PATCH to fix -Wrestrict ICE (PR middle-... Jakub Jelinek
- Re: PATCH to fix -Wrestrict ICE (PR mi... Martin Sebor
- Re: PATCH to fix -Wrestrict ICE (P... Jakub Jelinek
- Re: PATCH to fix -Wrestrict IC... Martin Sebor
- Re: PATCH to fix -Wrestrict IC... Jakub Jelinek
- Re: PATCH to fix -Wrestrict IC... Martin Sebor