@parzivalwolfram@infosec.exchange
Post #3574282
2025-04-07 07:23 UTC
the modded header files even built binutils, xz, gzip, tar, m4, bison, gmp, and more just fucking fine, they all work, autoconf test suites are actually reporting fewer issues with the modded system headers than stock, almost all of it is now C99 compliant with very limited exception.
but if you add just whitespace to the headers, gcc 2.95.x loses track of all its builtins, 3.2.x can build just fine, and 4.4.7 can't bootstrap itself because it loses the ability to read in stage1, even when bootstrapping is disabled (because it does a one-stage bootstrap for its support libraries regardless.)
can't switch to a more sane language either because rust requires llvm and cmake, and those need like gcc 6.x and glibc, which are a ways off.
Replies (1)
-
@parzivalwolfram@infosec.exchange 2025-04-07 07:28
"how did you make solaris 7 C99 compliant without rebuilding the entire OS from source?" Sun was following the draft versions incredibly closely, so all that was really missing were a couple minor tweaks to #define statements here and there and fabricating stdint.h, which is mostly just importing other headers anyway. The hardest part were values like WCHAR_MIN, but the _t counterpart usually existed somewhere already, and as such you can extrapolate those just fine.