https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93949
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2020-02-26
CC| |jakub at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Target Milestone|--- |8.4
Summary|Register const local var |[8/9/10 Regression]
|will not compile |Register const local var
| |will not compile since
| |r0-58166
Ever confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r0-58166-g6de9cd9a886ea695aa892c3c7c07818a7b7e9e6f.
The problem is in the
/* If a const aggregate variable is being initialized, then it
should never be a lose to promote the variable to be static. */
optimization. Either we shouldn't do that optimization if DECL_REGISTER is
set, or we should clear DECL_REGISTER. If the latter, we should still punt on
DECL_HARD_REGISTER.