This is the mail archive of the gcc-patches@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: -mpower4 sched2 bug miscompiles linux kernel


On Mon, Sep 09, 2002 at 09:53:22PM -0400, David Edelsohn wrote:
> 	This patch generally looks like the right direction to clean up
> that function, but the function either should use the _nv forms of
> adjust_address or the non-_nv forms.  I think it should always use the
> non-_nv forms, but I'm not sure.  I do not see any reason that it should
> differ between the STRING and non-STRING instructions.

The reason I used adjust_automodify_address_nv in the STRING case is
that I figured we'll always be generating a valid address, since we
construct the address rtx via copy_addr_to_reg.  That's not true now
for non-STRING insns, so we can't use the _nv variant there.  As far
as I can see, it shouldn't hurt to use the non _nv variant in both
places, so I'm happy to modify the patch to do that.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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