aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2009-10-21 16:16:24 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2009-10-21 16:16:24 +0100
commit58f451f0930a31bb8b9975817ffedc2020450179 (patch)
tree0403b2de3a1cb5480e08934c4ce881d550408bca /gcc/config
parent742c881942ff4104e09b1561b5b8af46b6db65ea (diff)
downloadgcc-58f451f0930a31bb8b9975817ffedc2020450179.zip
gcc-58f451f0930a31bb8b9975817ffedc2020450179.tar.gz
gcc-58f451f0930a31bb8b9975817ffedc2020450179.tar.bz2
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
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/sh/sh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index 7758bfa..26bceea 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -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))