PATCH: Add stop bits to tls

H. J. Lu hjl@lucon.org
Thu Sep 11 20:41:00 GMT 2003


I got random failurs on ia64 with different vesions of gcc and
different optimizations. This patch fixes it.


H.J.
----
2003-09-11  H.J. Lu  <hongjiu.lu@intel.com>

	* elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
	(TLS_LD): Likewise.
	(TLS_GD): Likewise.

--- elf/tls-macros.h.stop	2003-07-31 23:31:28.000000000 -0700
+++ elf/tls-macros.h	2003-09-11 10:31:33.000000000 -0700
@@ -324,6 +324,7 @@ register void *__gp __asm__("$29");
          "ld8 r17=[r16]\n\t"						      \
          ";;\n\t"							      \
          "add %0=r13,r17\n\t"						      \
+         ";;\n\t"							      \
          : "=r" (__l) : "r" (__gp) : "r16", "r17" ); __l; })
 
 # define __TLS_CALL_CLOBBERS \
@@ -348,6 +349,7 @@ register void *__gp __asm__("$29");
          ";;\n\t"							      \
          "mov gp=loc0\n\t"						      \
          "mov %0=r8\n\t"						      \
+         ";;\n\t"							      \
          : "=r" (__l) : "r" (__gp) : "loc0", __TLS_CALL_CLOBBERS);	      \
      __l; })
 
@@ -365,6 +367,7 @@ register void *__gp __asm__("$29");
          ";;\n\t"							      \
          "mov gp=loc0\n\t"						      \
          "mov %0=r8\n\t"						      \
+         ";;\n\t"							      \
           : "=r" (__l) : "r" (__gp) : "loc0", __TLS_CALL_CLOBBERS);	      \
      __l; })
 



More information about the Libc-alpha mailing list