This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH to fix ICE with -Wint-conversion (PR middle-end/86202)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]