On 11/11/2011 08:41 AM, Jakub Jelinek wrote: > On Fri, Nov 11, 2011 at 08:36:36AM -0800, Richard Henderson wrote: >> Ok, except >> >>> + elts[i] >>> + = fold_convert (TREE_TYPE (TREE_TYPE (arg)), integer_zero_node); >> >> build_int_cst. > > That would work for integer modes only, but here the type can be REAL_TYPE > too. I think fold_convert from integer_zero_mode to any time is what is > the most common idiom to create zero > INTEGER_CSTs/COMPLEX_CSTs/REAL_CSTs/FIXED_CSTs of any type.
Ah, right. Patch is ok as-is. r~