Copy this patch over from master gcc repository: