This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]