mirror of git://gcc.gnu.org/git/gcc.git
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:
parent
742c881942
commit
58f451f093
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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; }
|
Loading…
Reference in New Issue