How do I bootstrap a newer version of the compiler (gcc)?
You should really just install the latest snapshot. OpenBSD now supports two compilers in-tree, gcc v3.3.5 used by most platforms, but also gcc v2.95.3 used by a few platforms which haven’t been converted yet, or may never be converted due to lack of gcc3 support or poor gcc3 performance. The two compilers are in different parts of the tree: • gcc3: /usr/src/gnu/usr.bin/gcc • gcc2: /usr/src/gnu/egcs/gcc Because upgrading a compiler is a bit of a chicken-and-egg problem, changes to the in-tree compiler require a little extra attention. You have to build the compiler twice — the first build produces a compiler that generates new code but runs with code generated by the old compiler, the second build makes it a completely new compiler.