On Sat, Oct 12, 2013 at 4:57 PM, H.J. Lu <hjl.to...@gmail.com> wrote:

>>> In x32, when a TLS address is in DImode and Pmode is SImode,
>>> copy_addr_to_reg will fail.  This patch adds ix86_copy_addr_to_reg
>>> to first copy DImode address into a DImode register and then to generate
>>> SImode SUBREG in this case.  Tested on x32.  OK for trunk?
>>>
>>> 2013-10-11  H.J. Lu  <hongjiu...@intel.com>
>>>
>>>         PR target/58690
>>>         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
>>>         (ix86_expand_movmem): Replace copy_addr_to_reg with
>>>         ix86_copy_addr_to_reg.
>>>         (ix86_expand_setmem): Likewise.
>>>
>>> gcc/testsuite/
>>>
>>> 2013-10-11  H.J. Lu  <hongjiu...@intel.com>
>>>
>>>         PR target/58690
>>>         * gcc.target/i386/pr58690.c: New test
>
>> Do we also need this patch on 4.8?
>
> Yes, it is also needed for 4.8.  OK for 4.8 after a few days?

OK after the tree opens for check-ins again.

Thanks,
Uros.

Reply via email to