gcc49: upstream patch for 10.4