TIL that OpenBSD 6.3, released in 2018, ships with GCC 4.2.1, released in 2007.
Conversation
A few features were independently backported, either because they were committed before the license changeover, or code authors were contacted. Examples of this are the -fstack-protector-strong, binary integer constant support, and perhaps others.



