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

--- Comment #13 from Qing Zhao <qing.zhao at oracle dot com> ---
> On Nov 4, 2020, at 10:04 AM, jakub at gcc dot gnu.org 
> <gcc-bugzi...@gcc.gnu.org> wrote:
> --- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> I think you should do:
> --- gcc/function.c      2020-10-31 17:41:19.756740009 +0100
> +++ gcc/function.c      2020-11-04 17:02:51.199298173 +0100
> @@ -5871,6 +5871,8 @@ gen_call_used_regs_seq (rtx_insn *ret, u
>        continue;
>       if (fixed_regs[regno])
>        continue;
> +      if (!TEST_HARD_REG_BIT (accessible_reg_set, regno))
> +       continue;
>       if (REGNO_REG_SET_P (live_out, regno))\

Yes, this looks like a better solution. I will add this fix.

Reply via email to