On 09/17/2012 07:32 PM, Ulrich Weigand wrote: > In any case, the change in the condition you noticed was introduced by a > recent > patch by Bernd: http://gcc.gnu.org/ml/gcc-patches/2012-08/msg00171.html > > It seems that we ought to use a similar test to what Bernd introduced in > gen_reload, that is, use the "replaced_subreg" routine on rld[r].in, check > whether the result is a hard register and use its REGNO_REG_CLASS. > > Bernd, given that you worked on this recently, any other thoughts?
No, that's about it really. The basic idea is that we need to be careful to pass the right thing to SECONDARY_MEMORY_NEEDED in case the inner of a subreg was replaced. Bernd