re PR target/29198 (Incorrect reference to __thread array with -fPIC -O2 on x86)
authorJakub Jelinek <jakub@redhat.com>
Fri, 6 Oct 2006 07:25:02 +0000 (09:25 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 6 Oct 2006 07:25:02 +0000 (09:25 +0200)
commitc1a46941d41c8f3de4b9eb2f4bb95eaa99fb7146
tree06aa32ae359e2b332fbb0a1059962011090120d6
parent9eccb94dff81cd39b3c29086f3b83fa058b92f0c
re PR target/29198 (Incorrect reference to __thread array with -fPIC -O2 on x86)

PR target/29198
* config/i386/i386.c (legitimize_pic_address): Reject TLS symbols.
* config/i386/predicates.md (local_symbolic_operand): Likewise.

* gcc.dg/tls/opt-12.c: New test.

From-SVN: r117483
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tls/opt-12.c [new file with mode: 0644]