https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108463

--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 54375
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54375&action=edit
gcc13-pr108463-2.patch

Additional untested patch (likely stage1 material) to treat SP_DERIVED_VALUE_P
and SP_DERIVED_VALUE_P + CONST_INT VALUEs as sp based at least before
pro_and_epilogue or for !frame_pointer_needed.

Additionally, I think we want to change alias.cc (get_addr) so that perhaps
again before pro_and_epilogue or for !frame_pointer_needed it would
canonicalize VALUEs with SP_DERIVED_VALUE_P or SP_DERIVED_VALUE_P + CONST_INT
to sp + CONST_INT if possible.

Reply via email to