This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH to fix ICE with -Wint-conversion (PR middle-end/86202)
- From: Jeff Law <law at redhat dot com>
- To: Marek Polacek <polacek at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 22 Jun 2018 10:14:32 -0600
- Subject: Re: PATCH to fix ICE with -Wint-conversion (PR middle-end/86202)
- References: <20180618203457.GB17009@redhat.com>
On 06/18/2018 02:34 PM, Marek Polacek wrote:
> This patch improves the checks in size_must_be_zero_p so that we don't
> call get_range_info with SIZE of a pointer type.
>
> Bootstrapped/regtested on x86_64-linux, ok for trunk and 8?
>
> 2018-06-18 Marek Polacek <polacek@redhat.com>
>
> PR middle-end/86202
> * gimple-fold.c (size_must_be_zero_p): Check the type of the size.
>
> * gcc.dg/Wint-conversion-2.c: New test.
OK.
jeff