(clang and llvm are also open by choice)
I do like the fact that we now have two competing compilers and llvm brought a lot of innovation, but everyone know that only reason Apple invested in these projects is to avoid GPLv3.
And yeah at the same time Apple's locked platform and Webkit-only policy saves us from Chromium monopoly over the web and helps Firefox live. So yeah world is not just abstract "good and evil" obviously.
So if that's the only reason, then why did Apple hire Lattner to work on llvm in 2005 (two years prior to gcc's switch to v3)?
Surely it would have been easier to just fork one of the GPLv2 releases from 2007 or earlier.
Also GPLv3 was officially announced in 2005. It's was just matter of time before all GNU projects switch to new license version. And it was certainly.
https://www.zdnet.com/article/gpl-3-may-tackle-web-loophole/
Oh and there was plans to release GPLv3 even earlier in 2004 and it's was known that it's will include patents grant. This was obviously absolutely unacceptable for Apple: