This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A reload inheritance bug
- From: Joern Rennecke <joernr at arc dot com>
- To: Mark Shinwell <shinwell at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org, richard dot codesourcery dot com at arc dot com, iant at google dot com
- Date: Mon, 14 May 2007 23:28:53 +0100
- Subject: Re: A reload inheritance bug
> In order to fix this I think that reload1.c:emit_reload_insns should,
> at the point of discovery of an input reload whose reload register is a
> non-spill hard register H, invalidate all previous reloads involving
> that hard register.
If the reload is inherited, and there is no non-input part of the reload
that would destroy the value in the register, you should leave previous
reloads alone, so that they can be inherited multiple times.