https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102665
--- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> --- WIP: I stubbed in a start on this in my autotools-tinkering branch a bit: https://github.com/gcc-mirror/gcc/commit/c2caa289485edb40eddcd240a7fc655cfd7c38ba (it's got some unrelated parts in it that I'll need to strip out again when cherry-picking it over to my branch for this PR, though...)