http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55597
--- Comment #15 from uros at gcc dot gnu.org 2012-12-07 08:10:44 UTC --- Author: uros Date: Fri Dec 7 08:10:37 2012 New Revision: 194292 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194292 Log: Backport from mainline 2012-12-06 Uros Bizjak <ubiz...@gmail.com> H.J. Lu <hongjiu...@intel.com> PR target/55597 * config/i386/i386.c (legitimize_tls_address): Zero-extend x to Pmode, before using it as insn or call equivalent. testsuite/ChangeLog: Backport from mainline 2012-12-06 Uros Bizjak <ubiz...@gmail.com> PR target/55597 * gcc.target/i386/pr55597.c: New test. Added: branches/gcc-4_7-branch/gcc/testsuite/gcc.target/i386/pr55597.c Modified: branches/gcc-4_7-branch/gcc/ChangeLog branches/gcc-4_7-branch/gcc/config/i386/i386.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog