@mjg59 The software written is free software, but writing free software with non-free tools is a short-term compromise.
People worked on gcc then just like how people worked later on free implementations of java and c#, as well as vala as a similar-ish language.