This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Reload question
- From: Bernd Schmidt <bernds at redhat dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 25 Jul 2002 21:25:28 +0100 (BST)
- Subject: Re: Reload question
On Thu, 25 Jul 2002, Mark Mitchell wrote:
>
> In reload, after doing register allocation, we do, in "reload()":
>
> if (reg_renumber[i] < 0)
> {
> rtx reg = regno_reg_rtx[i];
>
> PUT_CODE (reg, MEM);
> XEXP (reg, 0) = addr;
> REG_USERVAR_P (reg) = 0;
> ...
> }
>
> That mutates the instruction in place, with the possible result that
> it is no longer recognizable.
>
> Who is supposed to be responsible for making the instruction
> recognizable again?
If reload works properly, the insn will be recognizable after this. If
it isn't the bug is someplace earlier.
Bernd