This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [mips] fix $gp restore bug
Adam Nemet <anemet@caviumnetworks.com> writes:
> Hi Richard,
>
> Richard Sandiford <rdsandiford@googlemail.com> writes:
>> + return ("%[daddiu\t$sp,$sp,-16\n"
>> + "\tsd\t$31,0($sp)\n"
>> + "\t%(%<bal\t1f\n"
>> + "\tlui\t%@,%%hi(%0)%>%)\n"
>
> I think you missed the substraction by the label.
Indeed. As you can tell, "only lightly tested" in this case meant
"eyeballed". I still need to update my MIPS GNU/Linux set-up after
an OS upgrade.
Richard