public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/47403] New: [x32] TLS doesn't work
@ 2011-01-21 17:31 hjl.tools at gmail dot com
  2011-01-21 18:55 ` [Bug target/47403] " hjl at gcc dot gnu.org
  2011-02-25 21:25 ` hjl.tools at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: hjl.tools at gmail dot com @ 2011-01-21 17:31 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [x32] TLS doesn't work
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com


[hjl@gnu-6 ilp32-15]$ cat x.c
extern __thread int __libc_errno __attribute__ ((tls_model ("initial-exec")));
;
int *
__errno_location (void)
{
  return &__libc_errno;
}
[hjl@gnu-6 ilp32-15]$ make
/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/ -S -o x.s -mx32 -O2 -dp 
x.c
x.c: In function ‘__errno_location’:
x.c:7:1: error: unrecognizable insn:
(insn 8 7 9 3 (set (reg:SI 59 [ <retval> ])
        (reg:DI 63)) x.c:5 -1
     (expr_list:REG_EQUAL (symbol_ref:SI ("__libc_errno") [flags 0x60]
<var_decl 0x7f7cc21c8000 __libc_errno>)
        (nil)))
x.c:7:1: internal compiler error: in extract_insn, at recog.c:2109
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [x.s] Error 1
[hjl@gnu-6 ilp32-15]$


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

* [Bug target/47403] [x32] TLS doesn't work
  2011-01-21 17:31 [Bug target/47403] New: [x32] TLS doesn't work hjl.tools at gmail dot com
@ 2011-01-21 18:55 ` hjl at gcc dot gnu.org
  2011-02-25 21:25 ` hjl.tools at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: hjl at gcc dot gnu.org @ 2011-01-21 18:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-01-21 18:05:59 UTC ---
Author: hjl
Date: Fri Jan 21 18:05:55 2011
New Revision: 169097

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169097
Log:
Call convert_to_mode on legitimize_tls_address retuen if needed.

gcc/

2011-01-21  H.J. Lu  <hongjiu.lu@intel.com>

    PR target/47403
    * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
    on legitimize_tls_address retuen if needed.

gcc/testsuite/

2011-01-21  H.J. Lu  <hongjiu.lu@intel.com>

    PR target/47403
    * gcc.target/i386/pr47403-1.c: New.

Added:
    branches/x32/gcc/testsuite/gcc.target/i386/pr47403-1.c
Modified:
    branches/x32/gcc/ChangeLog.x32
    branches/x32/gcc/config/i386/i386.c
    branches/x32/gcc/testsuite/ChangeLog.x32


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

* [Bug target/47403] [x32] TLS doesn't work
  2011-01-21 17:31 [Bug target/47403] New: [x32] TLS doesn't work hjl.tools at gmail dot com
  2011-01-21 18:55 ` [Bug target/47403] " hjl at gcc dot gnu.org
@ 2011-02-25 21:25 ` hjl.tools at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: hjl.tools at gmail dot com @ 2011-02-25 21:25 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-02-25 21:23:10 UTC ---
Dup.

*** This bug has been marked as a duplicate of bug 47715 ***


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

end of thread, other threads:[~2011-02-25 21:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-21 17:31 [Bug target/47403] New: [x32] TLS doesn't work hjl.tools at gmail dot com
2011-01-21 18:55 ` [Bug target/47403] " hjl at gcc dot gnu.org
2011-02-25 21:25 ` hjl.tools at gmail dot com

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).