Anyone know why they are still on such an old version? The latest version is 16.1.
[0] GCC still supports PDP-11, for example, but for a while modern GCC had some major codegen bugs. Last I checked, the maintainer had made heroic efforts to fixing the bugs, but that's just an example of where bitrot silently renders a target unusable.
gcc15-15.2.0nb1 - The GNU Compiler Collection (GCC) - 15.0 Release Series
As others said, I think it has to do with all the platforms NetBSD supports.
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