https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69981
--- Comment #3 from David L. <equinox-gccbugs at diac24 dot net> --- Poking around a bit, in wrapup_global_declaration_2() in gcc/toplev.c, the check for else if (TREE_READONLY (decl) && !TREE_PUBLIC (decl) && (optimize || !flag_keep_static_consts » » || DECL_ARTIFICIAL (decl)))