Commit 58f451f0 by Joseph Myers Committed by Joseph Myers

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
parent 742c8819
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))
......
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.
......
/* { 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; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment