sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.

* config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.

testsuite:
	* gcc.dg/tls/pie-1.c: New test.

From-SVN: r153060
This commit is contained in:
Joseph Myers 2009-10-21 16:16:24 +01:00 committed by Joseph Myers
parent 742c881942
commit 58f451f093
4 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-10-21 Joseph Myers <joseph@codesourcery.com>
* config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
2009-10-21 Jakub Jelinek <jakub@redhat.com>
PR other/25507

View File

@ -9431,6 +9431,7 @@ nonpic_symbol_mentioned_p (rtx x)
|| XINT (x, 1) == UNSPEC_GOTPLT
|| XINT (x, 1) == UNSPEC_GOTTPOFF
|| XINT (x, 1) == UNSPEC_DTPOFF
|| XINT (x, 1) == UNSPEC_TPOFF
|| XINT (x, 1) == UNSPEC_PLT
|| XINT (x, 1) == UNSPEC_SYMOFF
|| XINT (x, 1) == UNSPEC_PCREL_SYMOFF))

View File

@ -1,3 +1,7 @@
2009-10-21 Joseph Myers <joseph@codesourcery.com>
* gcc.dg/tls/pie-1.c: New test.
2009-10-21 Jakub Jelinek <jakub@redhat.com>
* g++.dg/abi/mangle33.C: New test.

View File

@ -0,0 +1,6 @@
/* { dg-do compile } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-fpie" } */
/* { dg-require-effective-target tls } */
__thread int a; int b; int main() { return a = b; }