Impossible to implement without patching toolchain defaults (Never going to happen) or wrapping the compiler. Fedora/Ubuntu handle it on a per-package basis.