Re: [PATCH/middle-end 2/6] __builtin_thread_pointer and AARCH64 ILP32

2014-02-24 Thread Chung-Lin Tang
On 2014/2/25 上午 10:06, Andrew Pinski wrote: > On Wed, Dec 4, 2013 at 9:42 AM, Yufeng Zhang wrote: >> On 12/03/13 21:24, Andrew Pinski wrote: >>> >>> Hi, >>>With ILP32 AARCH64, Pmode (DImode) != ptrmode (SImode) so the variable >>> decl >>> has a mode of SImode while the register is DImode. So

Re: [PATCH/middle-end 2/6] __builtin_thread_pointer and AARCH64 ILP32

2014-02-24 Thread Andrew Pinski
On Wed, Dec 4, 2013 at 9:42 AM, Yufeng Zhang wrote: > On 12/03/13 21:24, Andrew Pinski wrote: >> >> Hi, >>With ILP32 AARCH64, Pmode (DImode) != ptrmode (SImode) so the variable >> decl >> has a mode of SImode while the register is DImode. So the target that >> gets >> passed down to expand_bu

Re: [PATCH/middle-end 2/6] __builtin_thread_pointer and AARCH64 ILP32

2013-12-04 Thread Yufeng Zhang
On 12/03/13 21:24, Andrew Pinski wrote: Hi, With ILP32 AARCH64, Pmode (DImode) != ptrmode (SImode) so the variable decl has a mode of SImode while the register is DImode. So the target that gets passed down to expand_builtin_thread_pointer is NULL as expand does not know how to get a subreg f

[PATCH/middle-end 2/6] __builtin_thread_pointer and AARCH64 ILP32

2013-12-03 Thread Andrew Pinski
Hi, With ILP32 AARCH64, Pmode (DImode) != ptrmode (SImode) so the variable decl has a mode of SImode while the register is DImode. So the target that gets passed down to expand_builtin_thread_pointer is NULL as expand does not know how to get a subreg for a pointer type. This fixes the problem