https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77834
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 39929 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39929&action=edit gcc7-pr77834.patch Untested fix. Will bootstrap/regtest this with additional statistics gathering, to see if this shouldn't be extended (e.g. allow DECL_RTL to be used on TREE_STATIC vars or whatever make_decl_rtl allows).