public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/11129] New: TLS broken on i686 and x86-64
@ 2003-06-09  9:58 aj@gcc.gnu.org
  2003-06-09 13:24 ` [Bug target/11129] " pinskia@physics.uc.edu
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: aj@gcc.gnu.org @ 2003-06-09  9:58 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: TLS broken on i686 and x86-64
           Product: gcc
           Version: 3.4
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: jakub@gcc.gnu.org
        ReportedBy: aj@gcc.gnu.org
                CC: gcc-bugs@gcc.gnu.org,jh@suse.cz
  GCC host triplet: i686-linux-gnu

gromit:~/tmp:[1]$ /opt/gcc/3.4-devel/bin/gcc -fpreprocessed tls1.i -O2
tls1.i: In function `main':
tls1.i:64: error: unrecognizable insn:
(insn:HI 19 362 20 1 0x40194580 (set (reg/f:SI 66)
        (const:SI (plus:SI (unspec:SI [
                        (symbol_ref:SI ("local") [flags 0x22] <var_decl
0x40197a20 local>)
                    ] 5)
                (const_int 4 [0x4])))) -1 (nil)
    (nil))
tls1.i:64: internal compiler error: in extract_insn, at recog.c:2188
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gromit:~/tmp:[1]$ /opt/gcc/3.4-devel/bin/gcc -fpreprocessed -v
Reading specs from /opt/gcc/3.4-devel/lib/gcc-lib/i686-suse-linux-gnu/3.4/specs
Configured with: /cvs/gcc/configure --prefix=/opt/gcc/3.4-devel --disable-nls
--enable-threads=posix --enable-clocale=gnu --enable-__cxa_atexit
--enable-shared --enable-languages=c,c++,f77,objc,ada,treelang,java,f77
--enable-checking=misc,tree,rtl,gc,rtlflag --with-system-zlib i686-suse-linux-gnu
Thread model: posix
gcc version 3.4 20030604 (experimental)

Btw. the same appears with x86_64:
http://gcc.gnu.org/ml/gcc-bugs/2003-05/msg00940.html


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/11129] TLS broken on i686 and x86-64
  2003-06-09  9:58 [Bug target/11129] New: TLS broken on i686 and x86-64 aj@gcc.gnu.org
@ 2003-06-09 13:24 ` pinskia@physics.uc.edu
  2003-06-09 13:31 ` jakub@gcc.gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-09 13:24 UTC (permalink / raw)
  To: gcc-bugs

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 pinskia@physics.uc.edu  2003-06-09 13:24 -------
If this is related to the test gcc.dg/tls/opt-6.c, then it has been failing since that test was 
added which was 20030517.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/11129] TLS broken on i686 and x86-64
  2003-06-09  9:58 [Bug target/11129] New: TLS broken on i686 and x86-64 aj@gcc.gnu.org
  2003-06-09 13:24 ` [Bug target/11129] " pinskia@physics.uc.edu
@ 2003-06-09 13:31 ` jakub@gcc.gnu.org
  2003-06-10  4:30 ` rth@gcc.gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub@gcc.gnu.org @ 2003-06-09 13:31 UTC (permalink / raw)
  To: gcc-bugs

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 jakub@gcc.gnu.org  2003-06-09 13:31 -------
Yes, but on the trunk only.
On gcc-3_3-branch, gcc-3_3-rhl-branch and gcc-3_2-rhl8-branch the test works
just fine.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/11129] TLS broken on i686 and x86-64
  2003-06-09  9:58 [Bug target/11129] New: TLS broken on i686 and x86-64 aj@gcc.gnu.org
  2003-06-09 13:24 ` [Bug target/11129] " pinskia@physics.uc.edu
  2003-06-09 13:31 ` jakub@gcc.gnu.org
@ 2003-06-10  4:30 ` rth@gcc.gnu.org
  2003-06-10  4:53 ` rth@redhat.com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rth@gcc.gnu.org @ 2003-06-10  4:30 UTC (permalink / raw)
  To: gcc-bugs

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


rth@gcc.gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|jakub@gcc.gnu.org           |rth@gcc.gnu.org


------- Additional Comments From rth@gcc.gnu.org  2003-06-10 04:30 -------
Probably my direct segment patch.  I'll take a look.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/11129] TLS broken on i686 and x86-64
  2003-06-09  9:58 [Bug target/11129] New: TLS broken on i686 and x86-64 aj@gcc.gnu.org
                   ` (2 preceding siblings ...)
  2003-06-10  4:30 ` rth@gcc.gnu.org
@ 2003-06-10  4:53 ` rth@redhat.com
  2003-06-10  4:54 ` rth@gcc.gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rth@redhat.com @ 2003-06-10  4:53 UTC (permalink / raw)
  To: gcc-bugs

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;
  	  }


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/11129] TLS broken on i686 and x86-64
  2003-06-09  9:58 [Bug target/11129] New: TLS broken on i686 and x86-64 aj@gcc.gnu.org
                   ` (3 preceding siblings ...)
  2003-06-10  4:53 ` rth@redhat.com
@ 2003-06-10  4:54 ` rth@gcc.gnu.org
  2003-06-10  4:55 ` rth@gcc.gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rth@gcc.gnu.org @ 2003-06-10  4:54 UTC (permalink / raw)
  To: gcc-bugs

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


rth@gcc.gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
   Last reconfirmed|0000-00-00 00:00:00         |2003-06-10 04:54:10
               date|                            |


------- Additional Comments From rth@gcc.gnu.org  2003-06-10 04:54 -------
.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/11129] TLS broken on i686 and x86-64
  2003-06-09  9:58 [Bug target/11129] New: TLS broken on i686 and x86-64 aj@gcc.gnu.org
                   ` (4 preceding siblings ...)
  2003-06-10  4:54 ` rth@gcc.gnu.org
@ 2003-06-10  4:55 ` rth@gcc.gnu.org
  2003-06-13  0:46 ` rth@gcc.gnu.org
  2003-06-13  4:32 ` aj@gcc.gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rth@gcc.gnu.org @ 2003-06-10  4:55 UTC (permalink / raw)
  To: gcc-bugs

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


rth@gcc.gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |WAITING


------- Additional Comments From rth@gcc.gnu.org  2003-06-10 04:55 -------
Proposed patch.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/11129] TLS broken on i686 and x86-64
  2003-06-09  9:58 [Bug target/11129] New: TLS broken on i686 and x86-64 aj@gcc.gnu.org
                   ` (5 preceding siblings ...)
  2003-06-10  4:55 ` rth@gcc.gnu.org
@ 2003-06-13  0:46 ` rth@gcc.gnu.org
  2003-06-13  4:32 ` aj@gcc.gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rth@gcc.gnu.org @ 2003-06-13  0:46 UTC (permalink / raw)
  To: gcc-bugs

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


rth@gcc.gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From rth@gcc.gnu.org  2003-06-13 00:46 -------
Patch appears to work.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/11129] TLS broken on i686 and x86-64
  2003-06-09  9:58 [Bug target/11129] New: TLS broken on i686 and x86-64 aj@gcc.gnu.org
                   ` (6 preceding siblings ...)
  2003-06-13  0:46 ` rth@gcc.gnu.org
@ 2003-06-13  4:32 ` aj@gcc.gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: aj@gcc.gnu.org @ 2003-06-13  4:32 UTC (permalink / raw)
  To: gcc-bugs

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 aj@gcc.gnu.org  2003-06-13 04:32 -------
Thanks, this patch works for me.  Please commit it!


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-06-13  4:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-09  9:58 [Bug target/11129] New: TLS broken on i686 and x86-64 aj@gcc.gnu.org
2003-06-09 13:24 ` [Bug target/11129] " pinskia@physics.uc.edu
2003-06-09 13:31 ` jakub@gcc.gnu.org
2003-06-10  4:30 ` rth@gcc.gnu.org
2003-06-10  4:53 ` rth@redhat.com
2003-06-10  4:54 ` rth@gcc.gnu.org
2003-06-10  4:55 ` rth@gcc.gnu.org
2003-06-13  0:46 ` rth@gcc.gnu.org
2003-06-13  4:32 ` aj@gcc.gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).