https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44281
Bernd Schmidt <bernds at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |WONTFIX --- Comment #24 from Bernd Schmidt <bernds at gcc dot gnu.org> --- There is a possibility to fix it, but concerns that doing so would be invalid in the presence of signal handlers that want to access the global reg. Discussion here: https://gcc.gnu.org/ml/gcc-patches/2016-02/msg01401.html Therefore, WONTFIX. I think the real recommendation here is not to use global register vars.