https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120032
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- And to avoid repeated scanning of DECL_INITIAL when we add more of these patterns we could record classification of the table in a custom internal decl attribute we add, __attribute__(("table kind"(int))) with an enum also recording "unknown" so we scan at most once.