https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88416
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 45209 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45209&action=edit gcc9-pr88416.patch Untested fix. The problem are targets like x86 which are not AUTO_INC_DEC, but still have some patterns that use those expressions (pushes/pops). As for !AUTO_INC_DEC we just called copy_rtx which does pretty much the same copying/walking as cleanup_auto_inc_dec, except that the latter will handle those properly, I think the best fix is just to never use copy_rtx here.