------- Comment #2 from rguenth at gcc dot gnu dot org 2006-04-10 09:00 ------- We go via expand_builtin_memset which expands strlen at
len_rtx = expand_normal (len);
but then, expand via setmem fails, so we bail out
else if (!set_storage_via_setmem(dest_mem, len_rtx, val_rtx,
dest_align))
return 0;
and end up doing regular
return expand_call (exp, target, ignore);
which then expands strlen again.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27095
