[Bug target/11129] TLS broken on i686 and x86-64

rth@redhat.com gcc-bugzilla@gcc.gnu.org
Tue Jun 10 04:53:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11129



------- Additional Comments From rth@redhat.com  2003-06-10 04:53 -------
Subject: Re:  TLS broken on i686 and x86-64

Appears to be a mismatch between two parts of the backend
checking similar things.  Try this.


r~


Index: config/i386/i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.574
diff -c -p -d -r1.574 i386.c
*** config/i386/i386.c	8 Jun 2003 14:50:14 -0000	1.574
--- config/i386/i386.c	10 Jun 2003 04:50:35 -0000
*************** legitimate_constant_p (x)
*** 5719,5725 ****
--- 5719,5728 ----
  	switch (XINT (inner, 1))
  	  {
  	  case UNSPEC_TPOFF:
+ 	  case UNSPEC_NTPOFF:
  	    return local_exec_symbolic_operand (XVECEXP (inner, 0, 0), Pmode);
+ 	  case UNSPEC_DTPOFF:
+ 	    return local_dynamic_symbolic_operand (XVECEXP (inner, 0, 0), Pmode);
  	  default:
  	    return false;
  	  }



More information about the Gcc-bugs mailing list