Re: [PATCH] Fix inline memcpy ICE (PR tree-optimization/86526)

2018-07-17 Thread Richard Biener
On Mon, 16 Jul 2018, Jakub Jelinek wrote: > Hi! > > builtin_memcpy_read_str is a function meant to be called just as a callback > and verifies that we don't cross a '\0' boundary in the string. For > inline_string_cmp, we've checked that the length returned from c_getstr > is fine, so we can cro

Re: [PATCH] Fix inline memcpy ICE (PR tree-optimization/86526)

2018-07-16 Thread Jeff Law
On 07/16/2018 02:41 PM, Jakub Jelinek wrote: > Hi! > > builtin_memcpy_read_str is a function meant to be called just as a callback > and verifies that we don't cross a '\0' boundary in the string. For > inline_string_cmp, we've checked that the length returned from c_getstr > is fine, so we can c

[PATCH] Fix inline memcpy ICE (PR tree-optimization/86526)

2018-07-16 Thread Jakub Jelinek
Hi! builtin_memcpy_read_str is a function meant to be called just as a callback and verifies that we don't cross a '\0' boundary in the string. For inline_string_cmp, we've checked that the length returned from c_getstr is fine, so we can cross as many embedded NULs as there are within the TREE_S