This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [4.0 PATCH] Fix PR 20927
Richard Sandiford <rsandifo@redhat.com> writes:
> Ulrich Weigand <uweigand@de.ibm.com> writes:
>> As real fix, I think the computation of a "needed mode" may be
>> completely superfluous in the first place; instead, the first
>> clause of the 'if' could just be replaced by
>>
>> if ((GET_MODE_SIZE (GET_MODE (last_reg))
>> >= GET_MODE_SIZE (mode) + byte)
>
> I remember wondering about this too. Unfortunately, there are no
> comments at all explaining what the check is actually supposed to
> do, or what "need_mode" is suppsoed to be, so I thought at the time
> it was best to leave things be.
In case it wasn't clear: that was supposed to be a comment in favour
or your suggested change. ;)
Richard