On Wed, Sep 12, 2012 at 7:17 PM, H.J. Lu <hjl.to...@gmail.com> wrote:
>> When x86-64 TLS support was added by: >> >> http://gcc.gnu.org/ml/gcc-patches/2002-10/msg01262.html >> >> it didn't allow negative offset. Jakub, do you remember the reason for >> it? I tested this patch on Linux/x86-64 and used the new GCC to build >> glibc for x86-64 and x32. There are no regressions. OK to install? > >> 2012-09-02 H.J. Lu <hongjiu...@intel.com> >> >> PR target/54445 >> * config/i386/predicates.md (x86_64_immediate_operand): Allow >> negative offset for UNSPEC_DTPOFF/UNSPEC_NTPOFF. >> >> gcc/testsuite/ >> 2012-09-02 H.J. Lu <hongjiu...@intel.com> >> >> PR target/54445 >> * gcc.target/i386/pr54445-1.c: New file. >> * gcc.target/i386/pr54445-2.c: Likewise. The spec does not require positive offsets, and truncations will be detected by the linker anyway. So, looks OK to me. Thanks, Uros.