This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: HC11 regression, don't rely on REG_WAS_0 notes
- From: <tm_gccmail at mail dot kloo dot net>
- To: Stephane Carrez <stcarrez at nerim dot fr>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 31 Mar 2003 16:27:01 -0800 (PST)
- Subject: Re: [PATCH]: HC11 regression, don't rely on REG_WAS_0 notes
On Mon, 31 Mar 2003, Stephane Carrez wrote:
> Hi!
>
> I was too optimistic in thinking the REG_WAS_0 notes could be used.
> They can in some cases. But they are not removed in other cases and
> this results in wrong value to be set (reg is incremented/decremented instead
> of loading +1/-1 in it, but since the previous reg value is *not* 0, we get a wrong value).
>
> I committed this patch on 3_3 and mainline to disable their use.
>
> Stephane
>
> 2003-03-31 Stephane Carrez <stcarrez at nerim dot fr>
>
> * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
> notes as they are boggus.
> (m68hc11_gen_movqi): Likewise.
>
That should be "bogus" not "boggus"...
Also, shouldn't we fix the REG_WAS_0 notes instead of avoiding using them?
Toshi