http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58690
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- Created attachment 30982 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30982&action=edit A patch In x32, when TLS address is in DImode and Pmode is SImode. copy_addr_to_reg will fail. This patch adds ix86_copy_addr_to_reg to generate SUBREG in this case.