https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83653
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Actually, there is no need to use the __COUNTER__ stuff, just use static const int __ia64_asr_p = ...; in the scope. It is just important __OPTIMIZE__ is on, because at -O0 the compiler wouldn't optimize those static vars away.