3 ms·
Not criticizing OpenBSD, but this has nothing to do with OpenBSD in particular (which uses Clang now). Grandparent 'takeda is just flat wrong. hello.c compile
by loeg 7y ago
Not criticizing OpenBSD, but this has nothing to do with OpenBSD in particular (which uses Clang now).
Grandparent 'takeda is just flat wrong. hello.c compiles and runs with extremely modern Clang and GCC versions (8.0.1 RC and 9.2.0, respectively). The former is a development RC and the GCC was released August 2019.
And we can expect this going forward! The C standard is extremely stable and loathe to deprecate anything. gets(3) is finally gone in C11 and it has been deprecated since the 1999 standard. That's the only ABI removal in C history.
There is absolutely no reason to expect that tiny program which doesn't invoke gets(3) to ever stop being compilable by standards-conforming C compilers.