On Fri, Jul 29, 2011 at 6:18 AM, H.J. Lu <hjl.to...@gmail.com> wrote: > On Fri, Jul 29, 2011 at 4:01 AM, Uros Bizjak <ubiz...@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 <ubiz...@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.