re PR target/47715 ([x32] TLS doesn't work)
authorUros Bizjak <ubizjak@gmail.com>
Fri, 29 Jul 2011 13:48:40 +0000 (15:48 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 29 Jul 2011 13:48:40 +0000 (15:48 +0200)
commitdadecee2036a9656936063460299f413233b13ff
treec5de10fd2dd2a214db09002d032ac6d25d8bb75d
parentdb7ccee202ecc15386eb283a83f75530f7ed856a
re PR target/47715 ([x32] TLS doesn't work)

PR target/47715
* 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.
(*add_tp_<mode>): Ditto.
* config/i386/i386.c (get_thread_pointer): Load thread pointer in
ptr_mode and convert to Pmode if needed.

From-SVN: r176924
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.md
gcc/function.c