https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128846

--- Comment #10 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
Could be a linker issue, though:

* Assembler source, Linux vs. Solaris:

 main:
-.LFB0:
-       movl    %gs:0, %edx
-       leal    thrtest@ntpoff(%edx), %eax
-       addl    $thrtest@ntpoff+640, %edx
-       movapd  .LC0, %xmm0
+       movl    %gs:0, %ecx
+       movsd   .LC1, %xmm0
+       leal    thrtest@ntpoff(%ecx), %eax
+       leal    thrtest@ntpoff+640(%ecx), %edx
+       unpcklpd        %xmm0, %xmm0

* Executable disassembly:

  Linux:

08049040 <main>:
 8049040:       65 8b 15 00 00 00 00    mov    %gs:0x0,%edx
 8049047:       8d 82 70 fd ff ff       lea    -0x290(%edx),%eax
 804904d:       81 c2 f0 ff ff ff       add    $0xfffffff0,%edx
 8049053:       66 0f 28 05 10 a0 04    movapd 0x804a010,%xmm0
 804905a:       08 

  Solaris:

08050c30 <main>:
 8050c30:       65 8b 0d 00 00 00 00    mov    %gs:0x0,%ecx
 8050c37:       f2 0f 10 05 00 0a 05    movsd  0x8050a00,%xmm0
 8050c3e:       08 
 8050c3f:       8d 81 78 fd ff ff       lea    -0x288(%ecx),%eax
 8050c45:       8d 91 f8 ff ff ff       lea    -0x8(%ecx),%edx
 8050c4b:       66 0f 14 c0             unpcklpd %xmm0,%xmm0

Reply via email to