https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29253
--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 55235 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55235&action=edit Slightly different patch This is a slightly different patch but it basically does the same except it uses emit_library_call_value instead of creating trees to the expanding.