[NDS32] Rewrite PIC/TLS patterns.
authorMonk Chiang <sh.chiang04@gmail.com>
Mon, 15 Apr 2019 07:59:01 +0000 (07:59 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Mon, 15 Apr 2019 07:59:01 +0000 (07:59 +0000)
commit0398ae783ab09680e3adab9f15b949b082935e6b
tree198302a48c5d861a792dd554e8b775fa4802cace
parent1a9825f7d489cab7256bc3ff6dd67cdcf1e28922
[NDS32] Rewrite PIC/TLS patterns.

gcc/
* config/nds32/nds32-md-auxiliary.c
(nds32_legitimize_pic_address): Use new PIC pattern.
(nds32_legitimize_tls_address): Use new TLS pattern.
(nds32_output_symrel): New.
* config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
(nds32_alloc_relax_group_id): Ditto.
* config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
(nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
relax_group_id.
(nds32_group_tls_insn): Ditto.
(nds32_group_float_insns): Ditto.
* config/nds32/nds32.md (tls_le): New.
(sym_got): Ditto.

Co-Authored-By: Kito Cheng <kito.cheng@gmail.com>
Co-Authored-By: Shiva Chen <shiva0217@gmail.com>
From-SVN: r270361
gcc/ChangeLog
gcc/config/nds32/nds32-md-auxiliary.c
gcc/config/nds32/nds32-protos.h
gcc/config/nds32/nds32-relax-opt.c
gcc/config/nds32/nds32.md