re PR target/45870 (note: non-delegitimized UNSPEC 5 found (-O1 -g))
authorJakub Jelinek <jakub@redhat.com>
Mon, 11 Oct 2010 06:17:45 +0000 (08:17 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 11 Oct 2010 06:17:45 +0000 (08:17 +0200)
commit922a06c370916f82d58f43a782075994ae7b4009
tree377e2b3bf614a01891d536ccc1e426d22fa853b1
parentfdcbbfe70c66b9c793f7e0cde99e1acdbc299990
re PR target/45870 (note: non-delegitimized UNSPEC 5 found (-O1 -g))

PR target/45870
* config/i386/i386.c (ix86_delegitimize_tls_address): New function.
(ix86_delegitimize_address): Use it.

* gcc.dg/tls/pr45870.c: New test.

From-SVN: r165270
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tls/pr45870.c [new file with mode: 0644]