This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: subreg transformation causes incorrect post_inc
From: Mark Shinwell <shinwell@codesourcery.com>
> TabonyEE@austin.rr.com wrote:
> > My port, based on (GCC) 4.2.0 20061002 (experimental), is producing
> > incorrect code for the following test case:
> [snip]
>
> I've only had a very quick look at your code, but I have a feeling
> thatthis is an instance of the kind of slip-up with
> GO_IF_MODE_DEPENDENT_ADDRESSthat my patch at
> http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00858.html is
> aimed at preventing. (This patch is currently only applied to
> addrmodesbranch.)
>
> Mark
Hhmm. Is the intent of your patch simply to prevent the mistake of
backends not defining GO_IF_MODE_DEPENDENT_ADDRESS properly? My backend
checks for POST_INC and POST_DEC in GO_IF_MODE_DEPENDENT_ADDRESS.
Charles J. Tabony