https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80545
--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> --- As best I can tell the problem is that the option_enabled() function doesn't consider the front-end's lang_mask and returns true even for options that are not supported in the current language. I'm working on a fix.