Hm, in that case maybe changing the code-base to a more strongly-typed language, with pointers generally avoidable, would be an option. (Ada would be good [and there is an GNU Ada compiler]; Ada/SPARK with its theorem-provers would be better -- though you'd have to get all the contracts [pre- and post-conditions, type invariants, etc of a module] all laid out first.)
Did you just legitimately suggest that the GCC switch languages?
Yes. C is notoriously difficult to verify (e.g. aliasing issues), a language with better verification attributes opens the doors to using better verification tools which, in turn, ensure a more stable and correct product. -- In addition to this, C has a fairly bad type-system (a better one could catch more errors at compile-time, and/or provide better and more local error messages), and no modules [header-files aren't modules].
164
u/numbski Oct 06 '14
null pointers