They don't like GPLv3. The other BSDs used similarly old versions until they moved to clang, but netbsd is pretty tied to the gnu toolchain and aims to be as portable as possible, so they kinda have to stick to gcc
Each time we upgrade the system compiler, it requires extensive work to keep all of our supported architectures in working order, and adjust our code for compatibility.
it should. It doesn't.
Another reason is compiling with -Werror and hitting new warnings.
Also, the version of the spec changes with almost every major release.
Patches welcome!
2.95.3 and 3.3.6, both have now been retired in favour of gcc4. The majority use clang now, though.
/bsd.own.mk:GCC4_ARCH=alpha hppa m88k sh sparc64
The rest have already been migrated to LLVM/Clang 22 by default (except sparc64 below, that's experimental).
./bsd.own.mk:CLANG_ARCH=aarch64 amd64 arm i386 mips64 powerpc powerpc64 riscv64 sparc64