This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH, v2: PR target/47715: [x32] Use SImode for thread pointer


On Fri, Jul 29, 2011 at 6:18 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Fri, Jul 29, 2011 at 4:01 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
>> [ For some reason this post didn't reach gcc-patches@ ML archives... ]
>>
>> Hello!
>>
>> ABI specifies that TP is loaded in ptr_mode. Attached patch implements
>> this requirement.
>>
>> 2011-07-29 ?Uros Bizjak ?<ubizjak@gmail.com>
>>
>> ? ? ? ?* config/i386/i386.md (*load_tp_x32): New.
>> ? ? ? ?(*load_tp_x32_zext): Ditto.
>> ? ? ? ?(*add_tp_x32): Ditto.
>> ? ? ? ?(*add_tp_x32_zext): Ditto.
>> ? ? ? ?(*load_tp_<mode>): Disable for !TARGET_X32 targets.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

It should be "Disable for TARGET_X32 targets."

>> ? ? ? ?(*add_tp_<mode>): Ditto.
>> ? ? ? ?* config/i386/i386.c (get_thread_pointer): Load thread pointer in
>> ? ? ? ?ptr_mode and convert to Pmode if needed.
>>
>> Testing on x86_64-pc-linux-gnu in progress. H.J., please test this
>> version on x32.
>>
>
> It works. ?Can you check it in?
>
> Thanks.
>
> --
> H.J.
>



-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]