On 08/17/2016 09:10 AM, Jakub Jelinek wrote: > Did you really mean to use this block for strncasecmp only (rather than for > strncmp only, i.e. !is_strncasecmp)? Sure, that was a typo. Unfortunately I had a test case with strings that was eaten by fold_const_call. I enhanced test coverage for that. > > Also, while you are changing this, I'd replace > tree_fits_uhwi_p (len) && tree_to_uhwi (len) == 1 > with integer_onep (len). Fixed in v2. Martin > > Jakub