Upgrade gcc in 7.10
See #10777 (closed). The patch submitted by snoyberg won't work unless gcc is upgraded (at least to 4.7.0 I think - take a look at this mail thread). That's because response files are not used properly by older gcc.
gcc was upgraded for 7.12 in #10726 (closed) so this just needs to be backported