diff options
author | Chung-Ju Wu <jasonwucj@gmail.com> | 2019-02-04 07:31:45 +0000 |
---|---|---|
committer | Chung-Ju Wu <jasonwucj@gcc.gnu.org> | 2019-02-04 07:31:45 +0000 |
commit | 4a7df256445299c55162638c37c33bb8e6a19103 (patch) | |
tree | eee60a966e02bbae8ef73a3e8e31270eb43c6f1c /gcc/config/nds32 | |
parent | dcd717d7284caeefd012601251c76620fd7a3bd2 (diff) | |
download | gcc-4a7df256445299c55162638c37c33bb8e6a19103.zip gcc-4a7df256445299c55162638c37c33bb8e6a19103.tar.gz gcc-4a7df256445299c55162638c37c33bb8e6a19103.tar.bz2 |
[NDS32] Restrict address mode, when symbol is TLS model.
gcc/
* config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
into consideration.
From-SVN: r268509
Diffstat (limited to 'gcc/config/nds32')
-rw-r--r-- | gcc/config/nds32/nds32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/nds32/nds32.c b/gcc/config/nds32/nds32.c index b4f4ede..6702b76 100644 --- a/gcc/config/nds32/nds32.c +++ b/gcc/config/nds32/nds32.c @@ -2683,7 +2683,7 @@ nds32_legitimate_address_p (machine_mode mode, rtx x, bool strict) /* Now we see the [ + const_addr ] pattern, but we need some further checking. */ - if (flag_pic) + if (flag_pic || SYMBOL_REF_TLS_MODEL (op0)) return false; /* If -mcmodel=large, the 'const_addr' is not a valid address |