Re: [PATCH] Fix ICE in maybe_diag_stxncpy_trunc (PR tree-optimization/84383)

2018-02-15 Thread Richard Biener
On Thu, 15 Feb 2018, Jakub Jelinek wrote: > Hi! > > The function calls get_addr_base_and_unit_offset on 2 trees, but > that can return NULL if the unit offset is not constant. > The conditional tests just one of them for non-NULL and operand_equal_p > ICEs if one argument is NULL, so depending on

[PATCH] Fix ICE in maybe_diag_stxncpy_trunc (PR tree-optimization/84383)

2018-02-14 Thread Jakub Jelinek
Hi! The function calls get_addr_base_and_unit_offset on 2 trees, but that can return NULL if the unit offset is not constant. The conditional tests just one of them for non-NULL and operand_equal_p ICEs if one argument is NULL, so depending on the uninitialized poly_int64 (get_addr_base_and_unit_o