This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR 28982: reload deals incorrectly with automodified addresses
- From: Ian Lance Taylor <iant at google dot com>
- To: Richard Sandiford <richard at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 12 Sep 2006 17:24:51 -0700
- Subject: Re: PR 28982: reload deals incorrectly with automodified addresses
- References: <87zmdasn46.fsf@talisman.home>
Richard Sandiford <richard@codesourcery.com> writes:
> gcc/
> * reload.c (find_reloads_address_1): Use RELOAD_OTHER for the
> index of a PRE_MODIFY or POST_MODIFY address.
> * reload1.c (inc_for_reload): Use find_replacement on the original
> base and index registers.
>
> gcc/testsuite/
> * gcc.c-torture/execute/pr28982a.c: New test.
> * gcc.c-torture/execute/pr28982b.c: Likewise.
This is OK.
Thanks.
Ian