http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61060

--- Comment #3 from Jan Hubicka <hubicka at ucw dot cz> ---
> 
>   if (CONST_INT_P (count_exp))
>     min_size = max_size = probable_max_size = count = expected_size
>       = INTVAL (count_exp);
> ...
> 
>   if (!count)
>     count_exp = copy_to_mode_reg (GET_MODE (count_exp), count_exp);
> 
> However, when count_exp is (const_int 0), the assumption breaks, and the code
> tries to determine the mode of modeless (const_int 0) count_exp RTX.
> 
> CC author of the code.
I would say it is job of middle-end to not expand obviously pointless
stringops...

Reply via email to